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

Question: What is the highest Wins, when Goals For is greater than 39, and when Points is less than 25?
SQL: SELECT MAX("wins") FROM segunda_division_standings_2 WHERE "goals_for" > 39 AND "points" < 25

Question: What is the total number of Goals For, when Losses is greater than 16?
SQL: SELECT COUNT("goals_for") FROM segunda_division_standings_2 WHERE "losses" > 16

Question: What is the average Position, when Goal Difference is "17", and when Wins is greater than 13?
SQL: SELECT AVG("position") FROM segunda_division_standings_2 WHERE "goal_difference" = 17 AND "wins" > 13

Question: What is the lowest Goals For, when Draws is less than 4, and when Points is less than 27?
SQL: SELECT MIN("goals_for") FROM segunda_division_standings_2 WHERE "draws" < 4 AND "points" < 27