select * from data where sn='ds1' and pq='temp' order by id desc limit 4
idsntspqvaluesystemts
22760495 ds1 temp 20.19 1563676729 Sun 21 07 2019 04:38:49
22760482 ds1 temp 20.19 1563676707 Sun 21 07 2019 04:38:27
22760471 ds1 temp 20.19 1563676686 Sun 21 07 2019 04:38:06
22760460 ds1 temp 20.19 1563676664 Sun 21 07 2019 04:37:44

Sun Jul 21 04:39:06 2019 by walley