with t1 as (select vl.video_id, if(timestampdiff(second, start_time, end_time)>=duration, 1, 0) as if_wan, date(end_time) dt, if_like, if_retweet, if(comment_id, 1, 0) as if_comment from tb_user_video_log vl left join tb_video_info vi using(video_id) where date(release_tim...