Q&A about the site for expert genealogists and people interested in genealogy or family history
SELECT OwnerDisplayName, SUM(Score) AS [Score], COUNT(p.Id) AS [Posts], SUM(case when PostTypeId = 1 then 1 else 0 end) AS [Questions], SUM(case when PostTypeId = 2 then 1 else 0 end) AS [Answers] FROM Posts p INNER JOIN PostTags pt ON coalesce(p.ParentId, p.Id)=pt.PostId INNER JOIN Tags t ON pt.TagId = t.Id WHERE (OwnerUserId IS NULL) AND (t.TagName=##tagname:string?nt.number-theory##) GROUP BY OwnerDisplayName HAVING (SUM(Score)>=##minscore?50##) AND (COUNT(p.Id)>=##minposts?10##) ORDER BY SUM(Score) DESC