CREATE TABLE "accolades" (
  "publication" text,
  "country" text,
  "accolade" text,
  "year" real,
  "rank" text
);

Question: Which year's rank was #4 when the country was the US?
SQL: SELECT "year" FROM "accolades" WHERE "rank"='#4' AND "country"='us';

Question: Which publication happened in the UK?
SQL: SELECT "publication" FROM "accolades" WHERE "country"='uk';

Question: Which rank's country is the US when the accolade is 40 best albums of the year?
SQL: SELECT "rank" FROM "accolades" WHERE "country"='us' AND "accolade"='40 best albums of the year';