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

Question: How many Goals against have Wins larger than 12, and a Club of ud las palmas, and a Position larger than 5?
SQL: SELECT COUNT("goals_against") FROM segunda_division_stats_20 WHERE "wins" > 12 AND "club" = 'ud las palmas' AND "position" > 5

Question: Which Goals against has Points smaller than 26, and Goals for smaller than 38, and a Position larger than 14, and a Goal Difference smaller than -32?
SQL: SELECT MAX("goals_against") FROM segunda_division_stats_20 WHERE "points" < 26 AND "goals_for" < 38 AND "position" > 14 AND "goal_difference" < -32

Question: Which Goals against have a Club of cd castellón, and Points smaller than 24?
SQL: SELECT AVG("goals_against") FROM segunda_division_stats_20 WHERE "club" = 'cd castellón' AND "points" < 24

Question: How much Played has Goals against smaller than 34, and Wins smaller than 13?
SQL: SELECT SUM("played") FROM segunda_division_stats_20 WHERE "goals_against" < 34 AND "wins" < 13

Question: Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35?
SQL: SELECT AVG("played") FROM segunda_division_stats_20 WHERE "position" < 4 AND "wins" > 16 AND "points" = 38 AND "goals_against" > 35