This displays the top 1000 people near the location specified.
Q&A about the site for administrators, end users, developers and designers for Craft CMS
select top 1000
u.id as [User Link],
u.displayname as [User Name],
u.reputation as [User Rep]
from users u
where upper(u.location) like upper('%' + ##YourLocation:string## + '%') -- uppercase location