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

Question: What has the lowest number of wins with GA smaller than 39, more than 2 losses, and ties greater than 0?
SQL: SELECT MIN("wins") FROM "final_standing" WHERE "goals_against"<39 AND "losses">2 AND "ties">0;

Question: Which team has the most ties with fewer than 4 losses and GA smaller than 20?
SQL: SELECT MAX("ties") FROM "final_standing" WHERE "losses"<4 AND "goals_against"<20;

Question: How many games did the team lose that played 7 games and has a GA of less than 27?
SQL: SELECT COUNT("losses") FROM "final_standing" WHERE "games_played"=7 AND "goals_against"<27;