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

Question: What's the highest silver and 1 gold that the nation of djibouti received with a total less than 3?
SQL: SELECT MAX("silver") FROM "total" WHERE "gold"=1 AND "nation"='djibouti' AND "total"<3;

Question: What's the total number that had a rank larger than 17 and a gold greater than 0?
SQL: SELECT COUNT("total") FROM "total" WHERE "rank">17 AND "gold">0;