SELECT DISTINCT video_id, ROUND(finished_num/total_num, 3) AS avg_comp_play_rate FROM( SELECT video_id, IF((TIME_TO_SEC(end_time) - TIME_TO_SEC(start_time)) - duration >= '0', 1 , 0) AS mark, SUM(IF((TIME_TO_SEC(end_time) - TIME_TO_SEC(start_time)) - duration >= '0', 1 , 0)) OVER(PARTITI...