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

Question: Tell me the lowest gold for rank of 6 and total less than 2
SQL: SELECT MIN("gold") FROM "medals_table" WHERE "rank"='6' AND "total"<2;

Question: Tell me the rank for bronze less than 17 and gold less than 1
SQL: SELECT "rank" FROM "medals_table" WHERE "bronze"<17 AND "silver">1 AND "gold"<1;