with temp as ( select author,substr(end_time,1,7) as month_id,if_follow from tb_user_video_log tuvl left join tb_video_info tvi on tuvl.video_id = tvi.video_id where year(end_time) = 2021 ) , temp1 as ( select author,month_id, cast(sum(if(if_follow=1,1,if(if_follow=0,0,-1)))/count(*) as decimal(10,3...