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

Question: what is the highest gold when the rank is 12 for the nation vietnam?
SQL: SELECT MAX("gold") FROM "medal_table" WHERE "rank"='12' AND "nation"='vietnam';

Question: what is the total when the rank is 4?
SQL: SELECT "total" FROM "medal_table" WHERE "rank"='4';

Question: what is the nation when the gold is 1 and bronze is larger than 0?
SQL: SELECT "nation" FROM "medal_table" WHERE "gold"=1 AND "bronze">0;