Finished fixed query to avoid min/max issues around 0 degrees