CREATE TABLE "final_competition_scores" (
  "state" text,
  "preliminaries" real,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);

Question: What is the total swimsuit with Preliminaries smaller than 8.27?
SQL: SELECT SUM("swimsuit") FROM "final_competition_scores" WHERE "preliminaries"<8.27;

Question: What's the average interview with Preliminaries larger than 8.27, an Evening Gown of 8.85, and an Average smaller than 8.842?
SQL: SELECT AVG("interview") FROM "final_competition_scores" WHERE "preliminaries">8.27 AND "evening_gown"=8.85 AND "average"<8.842;

Question: How many swimsuits have an Evening Gown larger than 9, and an Interview larger than 8.405?
SQL: SELECT COUNT("swimsuit") FROM "final_competition_scores" WHERE "evening_gown">9 AND "interview">8.405;