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

Question: what is the total when the rank is total and the silver is less than 10?
SQL: SELECT SUM("total") FROM "medal_table" WHERE "rank"='total' AND "silver"<10;

Question: what is the least silver when gold is 0?
SQL: SELECT MIN("silver") FROM "medal_table" WHERE "gold"<0;

Question: what is the total silver when total is 30 and bronze is more than 10?
SQL: SELECT COUNT("silver") FROM "medal_table" WHERE "total"=30 AND "bronze">10;

Question: what is the total when bronze is more than 1, nation is hong kong (hkg) and gold is less than 3?
SQL: SELECT SUM("total") FROM "medal_table" WHERE "bronze">1 AND "nation"='hong kong (hkg)' AND "gold"<3;