select d.author_id, e.author_level, d.days_cnt from ( select author_id, count(*) as days_cnt from ( select author_id, answer_date - a zz from ( select author_id, answer_date, dense_rank() over ( partition by author_id order by answer_date ) a from answer_tb ) b group by author_id, answer_date, a ) c...