with f as ( select e.pos as first_pos, count(1) as pos_cnt from (select a.uid, a.event_time, min(b.event_time) as first_clicktime from ( select distinct uid, event_time, query_kw, lead(event_time,1,(select date_add(max(event_time),interval 1 second) from click_log_tb))over(partition by uid order by ...