select exam_id, duration, release_time from ( select *, lag(diff) over(partition by exam_id order by diff desc) as flag from ( select t2.exam_id, duration, release_time, timestampdiff(minute,start_time,submit_time) as diff, row_number() over(partition by exam_id order by timestampdiff(minute,star...