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

Question: What is the sum of Wins, when Played is less than 5?
SQL: SELECT SUM("wins") FROM "tournament_summary" WHERE "played"<5;

Question: What is the highest Wins, when Rank is greater than 2, and when Played is less than 5?
SQL: SELECT MAX("wins") FROM "tournament_summary" WHERE "rank">2 AND "played"<5;

Question: What is the sum of Wins, when Team is Sweden, and when Played is less than 5?
SQL: SELECT SUM("wins") FROM "tournament_summary" WHERE "team"='sweden' AND "played"<5;

Question: What is the highest Points, when Played is greater than 5?
SQL: SELECT MAX("points") FROM "tournament_summary" WHERE "played">5;

Question: What is the average Ties, when Played is greater than 5?
SQL: SELECT AVG("ties") FROM "tournament_summary" WHERE "played">5;