This query lists all users in a given location sorted by reputation. It tries to do this in a case-Insensitive manner. This query is much slower than the original it was forked from. Not sure about case-sensitivity, though.
Q&A for people interested in conceptual questions about life and challenges in a world where "cognitive" functions can be mimicked in purely digital environment
-- List of Users in a given location -- This query lists all users in a given location sorted by reputation. Declare @location varchar(50) set @location = ##location:string## set @location = lower( @location ) select Id as [User Link], location, reputation from users where lower(location) like '%' + @location + '%' order by reputation desc