Select temp, time from tab where "i parametri che vuoi" order by temp desc limit 1