A list of users with tag-based gold badges in a given country
Q&A about the site for operations research and analytics professionals, educators, and students
SELECT ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], Users.Id AS [User Link], Reputation FROM Users, Badges WHERE LOWER(Users.Location) LIKE LOWER('%##CountryName##%') AND Users.Id = Badges.UserId AND Badges.Class = 3 AND LOWER(Badges.name) = LOWER('##TagName##') ORDER BY Reputation DESC;