DL question askers per month

0

Please login or register to vote for this query.

(click on this box to dismiss)

Anime and Manga

Q&A for anime and manga fans

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

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results