Top users by tag and location


Please login or register to vote for this query.

(click on this box to dismiss)

Psychology & Neuroscience Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

SELECT us.*,tuser.Score
FROM Users us

(SELECT Answers.OwnerUserId AS UserId, SUM(Answers.Score) AS Score
     FROM Tags 
    JOIN PostTags ON Tags.Id = PostTags.TagId
    JOIN Posts ON Posts.Id = PostTags.PostId  
    JOIN Posts Answers ON Answers.ParentId = Posts.Id 
   WHERE Tags.TagName = '##TagName##'
  GROUP BY Answers.OwnerUserId
) tuser ON tuser.UserId = us.Id
WHERE LOWER(Location) LIKE LOWER('%##FullCountryName##%')
ORDER BY Reputation DESC;

Enter Parameters

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