Wrote leaderboard generator query