CREATE TABLE "preliminary_round" (
  "rank" real,
  "team" text,
  "played" real,
  "wins" real,
  "ties" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "points" real
);

Question: What are the total goals against the winner with less than 5 wins, and less than 5 plays?
SQL: SELECT COUNT("goals_against") FROM "preliminary_round" WHERE "wins"<5 AND "played"<5;

Question: What is the average losses for 22 goals?
SQL: SELECT AVG("losses") FROM "preliminary_round" WHERE "goals_for">22;

Question: What is the total wins with less than 2 ties, 18 goals, and less than 2 losses?
SQL: SELECT SUM("wins") FROM "preliminary_round" WHERE "ties"<2 AND "goals_against"=18 AND "losses"<2;