Produces a histogram of the number of users involved in closing questions as a duplicate (ruling out OP-accepted duplicates and gold-badge closures) over the past three years
Q&A for people interested in the history and origins of science and mathematics
SELECT NumberOfUsersClosing, COUNT(*) FROM ( SELECT LEN(Text)-LEN(REPLACE(Text,'"Id"','"d"')) AS NumberOfUsersClosing FROM PostHistory WHERE Comment = '101' AND CreationDate > DATEADD(year,-3,GETDATE()) AND Text NOT LIKE '%GoldTagBadge%' AND Text NOT LIKE '%DuplicateApprovedByAsker%' ) AS counts GROUP BY NumberOfUsersClosing ORDER BY NumberOfUsersClosing