Table: football_season_7
Columns: position
club
played
points
wins
draws
losses
goals_for
goals_against
goal_difference

Question: Name the most goals with losses less than 15 and position more than 8 with points of 42+4
SQL: SELECT MAX("goals_for") FROM football_season_7 WHERE "losses" < 15 AND "position" > 8 AND "points" = '42+4'

Question: Name the average goals against for draws of 8 and wins more than 22 with losses less than 12
SQL: SELECT AVG("goals_against") FROM football_season_7 WHERE "draws" = 8 AND "losses" < 12 AND "wins" > 22

Question: Name the least wins for goal difference being less than -20 with position less than 20 and goals for of 35
SQL: SELECT MIN("wins") FROM football_season_7 WHERE "position" < 20 AND "goals_for" = 35 AND "goal_difference" < -20

Question: Name the average losses for draws larger than 6 and played more than 38
SQL: SELECT AVG("losses") FROM football_season_7 WHERE "draws" > 6 AND "played" > 38

Question: Name the least goals against for played more than 38
SQL: SELECT MIN("goals_against") FROM football_season_7 WHERE "played" > 38