select ts, lp_index,
max(lp_value),
lp_project_id, lp_variable_uri,
lp_time_ticks, lp_value_type_value, lp_value, lp_unit from weixingdata.tdm_lp_original_data
where lp_time_ticks >= '2023-11-27 12:38:41'
and lp_time_ticks <= '2023-11-27 14:38:41'
and lp_project_id = '0A66F139-F8BF-485A-9F3B-DECD40C3E6D9'
and lp_variable_uri = 'tr://Resource1/Group1/TP2253/P3'
INTERVAL(120s) SLIDING(30s)
order by lp_time_ticks asc