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

Question: What is the sum of the goals with less than 30 points, a position less than 10, and more than 57 goals against?
SQL: SELECT SUM("goals_for") FROM segunda_division_1958_59 WHERE "points" < 30 AND "position" < 10 AND "goals_against" > 57

Question: What is the lowest amount of draws with less than 12 wins and less than 30 played?
SQL: SELECT MIN("draws") FROM segunda_division_1958_59 WHERE "wins" < 12 AND "played" < 30

Question: What is the highest amount of goals with more than 51 goals against and less than 30 played?
SQL: SELECT MAX("goals_for") FROM segunda_division_1958_59 WHERE "goals_against" > 51 AND "played" < 30

Question: What is the number of goals with less than 14 wins and a goal difference less than -4?
SQL: SELECT "goals_for" FROM segunda_division_1958_59 WHERE "wins" < 14 AND "goal_difference" < -4

Question: What is the average number of goals against with more than 12 wins, 12 losses, and a position greater than 3?
SQL: SELECT AVG("goals_against") FROM segunda_division_1958_59 WHERE "wins" > 12 AND "losses" = 12 AND "position" > 3

Question: What is the total number of losses with less than 73 goals for, less than 11 wins, more than 24 points, and a position greater than 15?
SQL: SELECT COUNT("losses") FROM segunda_division_1958_59 WHERE "goals_for" < 73 AND "wins" < 11 AND "points" > 24 AND "position" > 15