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 = 'primeira-liga' 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
12
21
31
42
52
67
712
818
926
1022
1124
1231
1327
1421
1534
1634
1728
1832
1938
2032
2131
2236
2337
2434
2540
2629
2742
2838
2926
3023
3141
3219
3312
3420
3513
3611
375
384
394
421
431
445
45196
462
473
483
491
517
5210
535
5411
557
5611
5718
5821
5920
6023
6127
6227
6336
6446
6556
6672
6750
6865
6969
7081
7187
72102
7392
7482
7578
76101
7787
78102
79103
80111
8196
82101
83137
84126
85107
86120
87104
8891
89408
903601
911
921
9412
9513
969
976
987
994
1001
1012
1201

Share link

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