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

Question: Name the total number of Draws when goals for is 58 and losses is 12 when goal differences is less than 21
SQL: SELECT COUNT("draws") FROM segunda_division_standings WHERE "goals_for" = 58 AND "losses" = 12 AND "goal_difference" < 21

Question: How many goals for where there when draws are less than 11, points of is 54+16 and goals against are less than 39?
SQL: SELECT COUNT("goals_for") FROM segunda_division_standings WHERE "draws" < 11 AND "points" = '54+16' AND "goals_against" < 39

Question: Name the total number of played when points of is 31-7, position is 16 and goals for is less than 35
SQL: SELECT COUNT("played") FROM segunda_division_standings WHERE "points" = '31-7' AND "position" = 16 AND "goals_for" < 35

Question: Name the total number of goal difference when the position is more than 20
SQL: SELECT COUNT("goal_difference") FROM segunda_division_standings WHERE "position" > 20

Question: Name the sum of draws when the position is less than 17 and wins is less than 11
SQL: SELECT SUM("draws") FROM segunda_division_standings WHERE "position" < 17 AND "wins" < 11