CREATE TABLE "performance_by_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);

Question: Name the average total for gold less than 1 and rank less than 5
SQL: SELECT AVG("total") FROM "performance_by_nation" WHERE "gold"<1 AND "rank"<5;

Question: Name the sum of silver when total is mor ethan 1, bronze is 1 and gold is les than 0
SQL: SELECT SUM("silver") FROM "performance_by_nation" WHERE "total">1 AND "bronze"=1 AND "gold"<0;

Question: Name the most gold when bronze is more than 0 and rank is more than 5 with total more than 2
SQL: SELECT MAX("gold") FROM "performance_by_nation" WHERE "bronze">0 AND "rank">5 AND "total">2;

Question: Name the average bronze with silver more than 0, total of 6 and gold more than 0
SQL: SELECT AVG("bronze") FROM "performance_by_nation" WHERE "silver">0 AND "total"=6 AND "gold">0;

Question: Name the sum of total with gold more than 1 and bronze more than 0
SQL: SELECT SUM("total") FROM "performance_by_nation" WHERE "gold">1 AND "bronze">0;