CREATE TABLE "summary" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);

Question: When bronze is more than 3, what is the rank?
SQL: SELECT "rank" FROM "summary" WHERE "bronze">3;

Question: When rank is 7 and silver is less than 0, what is the total gold?
SQL: SELECT SUM("gold") FROM "summary" WHERE "rank"='7' AND "silver"<0;