Q&A for developers and researchers interested in open data
SELECT Id AS UserId, DisplayName, Reputation FROM Users WHERE Reputation >= 20000 -- Reputation score qualifying them as trusted users AND CreationDate <= '2023-12-31' -- Date range (users created before or on December 31st, 2023) AND CreationDate >= '2018-01-01' -- Date range (users created on or after January 1st, 2018) AND Id IN (SELECT DISTINCT UserId FROM Badges WHERE Name = 'trusted user') -- Check if user has 'trusted user' badge ORDER BY Reputation DESC; -- Optional: Order users by reputation score descending