Baselight
select mps.minutes_played
       , SUM(CASE WHEN mps.goals_scored IS NOT NULL THEN mps.goals_scored ELSE 0 END) as goals_scored
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 year(s.start_date) >= 2015 and m.status = 'Match Finished' and mps.minutes_played is not null
group by all
having goals_scored > 0
order by 1
minutes_playedgoals_scored
14
23
32
45
54
67
75
834
920
1035
1140
1229
1332
1432
1527
1630
1735
1832
1935
2039
2135
2239
2334
2432
2541
2641
2742
2851
2944
3027
3139
3225
3325
3415
3511
3613
373
386
395
405
432
45182
461
471
484
493
505
514
529
5313
548
555
5618
5719
5816
5920
6023
6127
6221
6335
6474
6550
6656
6753
6869
6972
7089
7190
7286
7390
74104
75102
76103
77108
78138
79125
80139
81144
82136
83128
84140
85132
86164
87132
88140
89577
905782
912
947
952
968
978
985
997
1002
1012

Share link

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