with t1 as( select uid, timestampdiff(day,date_format(lag(start_time) over(partition by uid order by start_time),'%Y%m%d'),date_format (start_time, '%Y%m%d') + 1) as days_window from exam_record where year(start_time) = 2021), t2 as ( select uid, count(exam_id)/timestampdiff(...