Q&A for serious players and enthusiasts of chess
-- top users: Turkey -- List of Turkey-based users by reputation score. Query, naturally, by a turkish user. -- -- This is the original query! SELECT TOP (20) ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], Id AS [User Link], Reputation FROM Users WHERE LOWER(Location) LIKE '%turkey%' OR UPPER(Location) LIKE '%TR' OR UPPER(Location) LIKE 'ISTANBUL' OR LOWER(Location) LIKE 'istanbul' OR UPPER(Location) LIKE 'IZMIR' OR LOWER(Location) LIKE 'izmir' ORDER BY Reputation DESC;