Q&A about the site for information security professionals
SELECT eomonth(p.CreationDate), COUNT(p.Id) FROM PostsWithDeleted p INNER JOIN Votes v ON v.PostId = p.Id WHERE v.VoteTypeId IN (4,12) AND p.DeletionDate IS NOT NULL GROUP BY eomonth(p.CreationDate) ORDER BY eomonth(p.CreationDate)