SP
Size: a a a
SP
AK
AK
M
M
|my_string| |my_value1|
qwe 10
asd 20
|my_string| |my_value2|
qwe 3
qwe 8
asd 19
asd 20
asd 25
|my_string| |my_value1| |my_value2|
qwe 10 8
asd 20 20
DC
DC
|my_string| |my_value1|
qwe 10
asd 20
|my_string| |my_value2|
qwe 3
qwe 8
asd 19
asd 20
asd 25
|my_string| |my_value1| |my_value2|
qwe 10 8
asd 20 20
AK
DC
DC
DC
yl
M
M
DC
select uid, arrayFilter( x-> x.1 < arr.1[indexOf(arr.2, 'Y)] , (arraySort( x -> x.1, groupArray( tuple(ts,event) as arr) ) from
events
group by uid
AK
DC
AK
DC
AK