select * from data where sn='thermostat0' and pq='tin' order by id desc limit 4
idsntspqvaluesystemts
78045775 thermostat0 tin 25.75 1751843281 Mon 07 07 2025 01:08:01
78045770 thermostat0 tin 25.81 1751843260 Mon 07 07 2025 01:07:40
78045766 thermostat0 tin 25.75 1751843239 Mon 07 07 2025 01:07:19
78045763 thermostat0 tin 25.75 1751843219 Mon 07 07 2025 01:06:59

Mon Jul 7 01:08:06 2025 by walley