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

Question: How many goals for were scored for the team(s) that won fewer than 4 games and lost more than 6?
SQL: SELECT SUM("goals_for") FROM "final_standing" WHERE "wins"<4 AND "losses">6;

Question: What is the average losses for the team(s) that played more than 8 games?
SQL: SELECT AVG("losses") FROM "final_standing" WHERE "games_played">8;