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

Question: What is Gold, when Total is less than 4, when Silver is 1, and when Bronze is 1?
SQL: SELECT "gold" FROM "ranking" WHERE "total"<4 AND "silver"='1' AND "bronze"='1';

Question: What is Silver, when Total is greater than 4, when Bronze is 2, and when Rank is greater than 1?
SQL: SELECT "silver" FROM "ranking" WHERE "total">4 AND "bronze"='2' AND "rank">1;