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

Question: Which average games played number has the Ottawa Hockey Club as a team and a number of wins bigger than 5?
SQL: SELECT AVG("games_played") FROM "final_standing" WHERE "team"='ottawa hockey club' AND "wins">5;

Question: What is the mean number of goals against when there were fewer than 8 games played?
SQL: SELECT AVG("goals_against") FROM "final_standing" WHERE "games_played"<8;

Question: What is the sum of wins when the goals for number was bigger than 35, the team was the Montreal Hockey Club, and the number of losses was less than 2?
SQL: SELECT COUNT("wins") FROM "final_standing" WHERE "goals_for">35 AND "team"='montreal hockey club' AND "losses"<2;