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