Q&A for people interested in the history and origins of science and mathematics
with badge as (select count(*) as color, userid, name from badges b join tags t on t.tagname = b.name group by userid, name) select count(*) from badge where color = 1