Gets a list of most reputed users from a given location.
Q&A about the site for followers of the Hindu religion and those interested in learning more about Hinduism
SELECT * FROM (SELECT TOP 2500 'Gold' AS [Type], UserId AS [User Link], Count(*) as [Count], u.CreationDate as [CreationDate] FROM Badges b INNER JOIN users u ON u.id = b.userid WHERE location like '%##Location##%' AND Class=1 GROUP BY u.CreationDate, UserId ORDER BY [Count] DESC ) g