Baselight
Sign In

Query Result

1select p.name as "Player", mps.team_name as "Team"
2       , COUNT(distinct mps.match_id) as Matches
3       , SUM(CASE WHEN mps.goals_scored IS NOT NULL THEN mps.goals_scored ELSE 0 END) as Goals
4       , SUM(CASE WHEN mps.goals_assists IS NOT NULL THEN mps.goals_assists ELSE 0 END) as Assists
5       , SUM(CASE WHEN mps.yellow_cards IS NOT NULL THEN mps.yellow_cards ELSE 0 END) as "Yellow cards"
6       , SUM(CASE WHEN mps.red_cards IS NOT NULL THEN mps.red_cards ELSE 0 END) as "Red cards"
7from @blt.ultimate_soccer_dataset.seasons s
8inner join @blt.ultimate_soccer_dataset.competitions c on (s.competition_id = c.competition_id)
9inner join @blt.ultimate_soccer_dataset.matches m on (m.season_id = s.season_id)
10inner join @blt.ultimate_soccer_dataset.match_player_stats mps on (mps.match_id = m.match_id)
11inner join (SELECT distinct player_id, name from @blt.ultimate_soccer_dataset.players) p on (mps.player_id = p.player_id)
12where slug = 'world-cup' and season_label = '2026' and m.status = 'Match Finished'
13GROUP BY ALL
14ORDER BY Goals desc, Assists desc, Matches, "Yellow Cards", "Red Cards"
15limit 10
PlayerTeamMatchesGoalsAssistsYellow cardsRed cards
K. HavertzGermany12000
F. BalogunUSA12000
D. UndavGermany11200
Hwang In-BeomSouth Korea11100
N. BrownGermany11100
F. NmechaGermany11000
D. KamadaJapan11000
Oh Hyeon-GyuSouth Korea11000
B. EmboloSwitzerland11000
Vinícius JúniorBrazil11000

Share link

Anyone who has the link will be able to view this.