Add team_stats sub-query.