Gets a list of most reputed users from a given location.
Q&A for ebook publishers and readers
SELECT * FROM (SELECT TOP 100 'Gold' AS [Type], UserId AS [User Link], Count(*) as [Count] FROM Badges b INNER JOIN users u ON u.id = b.userid WHERE location like '%##Location##%' AND CreationDate = '2017-04-16 09:24:57' AND Class=1 GROUP BY UserId ORDER BY [Count] DESC ) g