proper and correct leaderboard query