Q&A for people who build and repair bicycles, people who train cycling, or commute on bicycles
-- Ignore the datapoints for the current month. That data is not yet complete. SELECT DATEFROMPARTS(YEAR(P.CreationDate), MONTH(P.CreationDate), 1) AS Date, CASE WHEN P.PostTypeId = 1 THEN 'questions' WHEN P.DeletionDate IS NULL THEN 'non-deleted answers' ELSE 'deleted answers' END AS Status, COUNT(*) AS NewAnswers FROM PostsWithDeleted P WHERE P.PostTypeId IN (1,2) AND YEAR(P.CreationDate) >= 2018 GROUP BY DATEFROMPARTS(YEAR(P.CreationDate), MONTH(P.CreationDate), 1), CASE WHEN P.PostTypeId = 1 THEN 'questions' WHEN P.DeletionDate IS NULL THEN 'non-deleted answers' ELSE 'deleted answers' END ORDER BY Date