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

Question: What's the highest total of Romania when the bronze was less than 2?
SQL: SELECT MAX("total") FROM "medals_table" WHERE "nation"='romania' AND "bronze"<2;

Question: What's the total of rank number 6 with more than 2 silver?
SQL: SELECT MAX("total") FROM "medals_table" WHERE "rank"='6' AND "silver">2;