Q&A for apps, scripts, and development with the Stack Exchange API
SELECT TOP ##MaxCount## ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], Id AS [User Link], Location,Reputation FROM Users WHERE LOWER(Location) LIKE LOWER('%##Country##%') ORDER BY Location, Reputation DESC;