CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);

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 "final_table" 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 "final_table" 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 "final_table" 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 "final_table" 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 "final_table" WHERE "position"<17 AND "wins"<11;