Q&A for students, teachers, and linguists wanting to discuss the finer points of the Russian language
SELECT top 1000 ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], u.Id AS [User Link], u.Reputation AS [User Reputation], count(p.id) AS [Number of posts?] FROM Users u inner join Posts p on p.ownerUserid = u.id inner join PostTags pt on pt.postid = p.id inner join Tags t on t.id = pt.tagid WHERE upper(u.location) like upper('%' + ##YourLocation:string## + '%') and upper(t.TagName) like upper('%' + ##TagName:string## + '%') group by u.reputation, u.id ORDER BY Reputation DESC;