Plots total questions over time Reference: http://meta.stackoverflow.com/q/260570/331508
Q&A for scientists using computers to solve scientific problems
WITH QuestStatsByMonth AS ( SELECT CONCAT(YEAR(q.CreationDate), RIGHT('000'+CAST(MONTH(q.CreationDate) AS VARCHAR(3)),3)) as [Month], q.Id AS id FROM Posts q INNER JOIN PostTags pt ON q.Id = pt.PostId INNER JOIN Tags t ON t.Id = pt.TagId WHERE q.PostTypeId = 1 AND t.TagName = 'perl6' ) SELECT q.[Month], COUNT(q.id) AS Qs FROM QuestStatsByMonth q GROUP BY q.[Month] ORDER BY q.[Month]