Q&A for peer programmer code reviews
SELECT DATEPART(YEAR, CreationDate) AS Year, DATEPART(MONTH, CreationDate) AS Month, COUNT(*) AS QuestionCount FROM Posts WHERE PostTypeId = 1 -- 1 represents questions AND CreationDate >= '2022-01-01' AND CreationDate < '2025-01-01' GROUP BY DATEPART(YEAR, CreationDate), DATEPART(MONTH, CreationDate) ORDER BY QuestionCount