Q&A for professional and enthusiast programmers
SET STATISTICS IO ON SELECT ParentId, COUNT(*) AS answers FROM Posts WHERE PostTypeId = 1 GROUP BY ParentId HAVING COUNT(*) > 5 ORDER BY answers DESC