CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);

Question: what is the least number of goals for when the goals against is 70 and the ties less than 0?
SQL: SELECT MIN("goals_for") FROM "final_standing" WHERE "goals_against"=70 AND "ties"<0;

Question: what is the average losses when the wins is 9 and ties more than 0?
SQL: SELECT AVG("losses") FROM "final_standing" WHERE "wins"=9 AND "ties">0;

Question: what is the lowest number of ties when the losses is 7 and games played is less than 10?
SQL: SELECT MIN("ties") FROM "final_standing" WHERE "losses"=7 AND "games_played"<10;

Question: what is the sum of games played when the losses is less than 7, the wins is 6 and the goals for is more than 76?
SQL: SELECT SUM("games_played") FROM "final_standing" WHERE "losses"<7 AND "wins"=6 AND "goals_for">76;

Question: what is the total number of games played when the goals for is less than 30?
SQL: SELECT COUNT("games_played") FROM "final_standing" WHERE "goals_for"<30;

Question: what is the sum of wins for the ottawa hockey club when the games played is less than 10?
SQL: SELECT SUM("wins") FROM "final_standing" WHERE "team"='ottawa hockey club' AND "games_played"<10;