select * from data where sn='221' and pq='temp' order by id desc limit 4
idsntspqvaluesystemts
62322635 221 temp 20.40 1662908720 Sun 11 09 2022 17:05:20
62322622 221 temp 20.40 1662908700 Sun 11 09 2022 17:05:00
62322617 221 temp 20.40 1662908697 Sun 11 09 2022 17:04:57
62322607 221 temp 20.30 1662908681 Sun 11 09 2022 17:04:41

Fri Apr 19 09:27:32 2024 by walley