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

Question: What was the highest goals with fewer than 16 losses, fewer than 11 wins, and a goal difference greater than -9?
SQL: SELECT MAX("goals_for") FROM football_season_12 WHERE "losses" < 16 AND "wins" < 11 AND "goal_difference" > -9

Question: What is the highest wins entry with fewer than 51 goals, more than 39 points, and a goal difference smaller than 13?
SQL: SELECT MAX("wins") FROM football_season_12 WHERE "goals_against" < 51 AND "points" > 39 AND "goal_difference" < 13

Question: What is the lowest wins entry that has a goal difference less than 33, position higher than 13, and 42 goals?
SQL: SELECT MIN("wins") FROM football_season_12 WHERE "goal_difference" < 33 AND "position" < 13 AND "goals_for" = 42

Question: What is the total number of goals for entries that have more than 7 draws, 8 wins, and more than 5 losses?
SQL: SELECT COUNT("goals_for") FROM football_season_12 WHERE "draws" > 7 AND "wins" > 8 AND "losses" > 5