Q&A for linguists, teachers and learners wanting to discuss the finer points of the Portuguese language
select sum(case when post < 10 then 1 else 0 end) L10, sum(case when post >= 10 and post < 20 then 1 else 0 end) L20, sum(case when post >= 20 then 1 else 0 end) G20 from ( select OwnerUserId, count(*) post from posts where PostTypeId=1 group by OwnerUserId ) t1