Baselight
select p.name as player
       , SUM(CASE WHEN mps.goals_scored IS NOT NULL THEN mps.goals_scored ELSE 0 END) as goals_scored
       , SUM(CASE WHEN mps.goals_assists IS NOT NULL THEN mps.goals_assists ELSE 0 END) as goals_assists
       , SUM(CASE WHEN mps.red_cards IS NOT NULL THEN mps.red_cards ELSE 0 END) as red_cards
, SUM(CASE WHEN mps.yellow_cards IS NOT NULL THEN mps.yellow_cards ELSE 0 END) as yellow_cards
from @blt.ultimate_soccer_dataset.seasons s
inner join @blt.ultimate_soccer_dataset.competitions c on (s.competition_id = c.competition_id)
inner join @blt.ultimate_soccer_dataset.matches m on (m.season_id = s.season_id)
inner join @blt.ultimate_soccer_dataset.match_player_stats mps on (mps.match_id = m.match_id)
inner join @blt.ultimate_soccer_dataset.players p on (mps.player_id = p.player_id)
where slug = 'premier-league' and season_label = '2025/2026' and m.status = 'Match Finished'
GROUP BY ALL
ORDER BY goals_scored desc
limit 10
playergoals_scoredgoals_assistsred_cardsyellow_cards
E. Haaland3000
I. Ndiaye2000
H. Ekitike2100
I. Sarr2001
Richarlison2101
V. Gyökeres2001
João Pedro2200
J. Anthony2101
Thiago2001
Lucas Paquetá2000

Share link

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