with t as ( SELECT author, month, round(avg(if_follow), 3) as fans_growth_rate, sum(if_follow) as `month_follow` FROM ( SELECT video_id, if(if_follow = 2, -1, if_follow) as `if_follow`, DATE_FORMAT(start_time,'%Y-%m') as month ...