Q&A about the site for aircraft pilots, mechanics, and enthusiasts
SELECT Users.Id, Users.DisplayName, Users.Location, Badges.UserId, COUNT(*) FROM Users, Badges WHERE Users.Id=Badges.UserId AND Users.Location='Latvia' GROUP BY Users.Id, Users.DisplayName, Users.Location, Badges.UserId HAVING COUNT(*)>100 ORDER BY COUNT(*) DESC