Q&A for gardeners and landscapers
WITH q as ( SELECT Posts.Id as Id, Posts.OwnerUserId as OwnerUserId, Posts.CreationDate as CreationDate, Posts.AcceptedAnswerId as AcceptedAnswerId, Tags.TagName as TagName FROM Tags LEFT JOIN PostTags ON PostTags.TagId = Tags.Id LEFT JOIN Posts ON Posts.Id = PostTags.PostId LEFT JOIN PostTypes ON PostTypes.Id = Posts.PostTypeId WHERE Tags.TagName IN ( 'tensorflow', 'pytorch', 'keras' ) AND Year(Posts.CreationDate) > 2015 AND PostTypes.Name = 'Question' ), p as ( SELECT DATEADD(mm, (Year(q.CreationDate) - 1900) * 12 + Month(q.CreationDate) - 1, 0) AS Month, q.OwnerUserId as Asker, count(*) as Questions FROM q WHERE q.OwnerUserId > 0 GROUP BY q.OwnerUserId,Year(q.CreationDate), Month(q.CreationDate), q.TagName ), asker as ( select Month, count(*) as Askers from p group by Month ), dupasker as ( select Month, count(*) as Askers from p where p.Questions>1 group by Month ) select * from asker