id________user_id________score___________________ user_name
1 555 10000 Fred
2 666 4400 Smith
3 555 30000 Fred
3 555 30000 Fred
2 666 4400 Smith
select user_id, max(score) as score
from game_api_score
group by user_id
order by score desc
limit 10;
SELECT DISTINCT FIRST_VALUE(`id`) OVER `win` AS `id`, `user_id`,
FIRST_VALUE(`score`) OVER `win` AS `score`,
FIRST_VALUE(`user_name`) OVER `win` AS `user_name`
FROM `game_api_score`
WINDOW `win` AS (PARTITION BY `user_id` ORDER BY `score` DESC)