Q&A for professional and enthusiast programmers
set statistics io on SELECT ParentId, COUNT(*) AS answers FROM Posts WHERE PostTypeId = 2 GROUP BY ParentId HAVING COUNT(*) > 5 ORDER BY answers DESC