CREATE TABLE "denmark" (
  "rank" real,
  "surname" text,
  "number_of_bearers_1971" real,
  "number_of_bearers_2009" real,
  "type" text,
  "etymology" text
);

Question: What is the type for rank 2?
SQL: SELECT "type" FROM "denmark" WHERE "rank"=2;

Question: What is the sum of number of bearers in 2009 for a rank above 1, a type of patronymic, an etymology meaning son of Christian, and the number of bearers in 1971 greater than 45.984?
SQL: SELECT SUM("number_of_bearers_2009") FROM "denmark" WHERE "rank">1 AND "type"='patronymic' AND "etymology"='son of christian' AND "number_of_bearers_1971">45.984;