Set of Answerers and Answer Id

0

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans Meta

Q&A about the site for music historians, critics, and fans

select count(upvotes) from
(SELECT distinct Posts.OwnerUserId,
      Tags.Id, 
      count(*) as upvotes
      FROM Tags
        INNER JOIN PostTags ON PostTags.TagId = Tags.id
        INNER JOIN Posts ON Posts.ParentId = PostTags.PostId
        INNER JOIN Votes ON Votes.PostId = Posts.Id and VoteTypeId = 2
      where Posts.OwnerUserId is not null
        and Tags.Id in (
          select pt.TagId as Tag from PostTags as pt, Posts as p
          where p.Id = pt.PostId 
          and p.viewCount > 42000
          and p.PostTypeId = 1
          )
       group by Posts.OwnerUserId, Tags.Id
 ) as manda
 where upvotes > 40

Enter Parameters

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