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 average ties when the team is montreal victorias and the games played is more than 8?
SQL: SELECT AVG("ties") FROM "final_standing" WHERE "team"='montreal victorias' AND "games_played">8;

Question: what is the average losses when the wins is 3?
SQL: SELECT AVG("losses") FROM "final_standing" WHERE "wins"=3;

Question: what is the highest goals against when the wins is less than 1?
SQL: SELECT MAX("goals_against") FROM "final_standing" WHERE "wins"<1;

Question: what is the total number of goals for when the ties is more than 0, the goals against is more than 35 and the wins is less than 2?
SQL: SELECT COUNT("goals_for") FROM "final_standing" WHERE "ties">0 AND "goals_against">35 AND "wins"<2;

Question: what is the sum of the losses when the goals against is less than 34 and the games played is less than 8?
SQL: SELECT SUM("losses") FROM "final_standing" WHERE "goals_against"<34 AND "games_played"<8;