with t1 as ( select video_id, sum(if(timestampdiff(second,start_time,end_time) >= duration,1,0)) as view_all, count(start_time) as view_amout, sum(if_like) as like_amout, count(comment_id) as comment_amout, sum(if_retweet) as share_amout, datediff(date((select max(end_time) from tb_user_video_lo...