select * from data where sn='ds0' and pq='temp' order by id desc limit 4
idsntspqvaluesystemts
27201309 ds0 temp 20.40 1571624709 Mon 21 10 2019 04:25:09
27201303 ds0 temp 20.40 1571624687 Mon 21 10 2019 04:24:47
27201298 ds0 temp 20.40 1571624666 Mon 21 10 2019 04:24:26
27201294 ds0 temp 20.40 1571624644 Mon 21 10 2019 04:24:04

Mon Oct 21 04:25:25 2019 by walley