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

Question: Which country has a rand of 2 and a silver less than 6?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "rank"='2' AND "silver"<6;

Question: What is the lowest total of medals that has a gold of 3 and a silver less than 3?
SQL: SELECT MIN("total") FROM "medal_table" WHERE "gold"=3 AND "silver"<3;