Min max vaules not correct?

Iam not a Grafana expert but this is very strange for me. I have a temperature series, showing the min and max vaules. If I change the time interval the vaules are changeing and not showing the correct vaules. Mybe I made some mistake, can you advice ?

SELECT mean("temperature") FROM "state" WHERE ("entity_id" = 'openweathermap') AND $timeFilter GROUP BY time($__interval) fill(linear)

This is the result.

For the same series, why the min is not correct ?

I fund the answer.
Updated the query :

SELECT distinct(“temperature”) FROM “state” WHERE (“entity_id” = ‘openweathermap’) AND timeFilter GROUP BY time(__interval) fill(linear)