CREATE TABLE "list_with_un_locode" (
  "rank" real,
  "name" text,
  "population_1991" real,
  "population_2001" real,
  "population_2007" real,
  "state" text
);

Question: What was the sum of the population in 2007, from State Tyrol, in 1991 a population less than 10,179, and a rank larger than 52?
SQL: SELECT SUM("population_2007") FROM "list_with_un_locode" WHERE "state"='tyrol' AND "population_1991"<'10,179' AND "rank">52;

Question: What is the average population in 1991, that has a 2001 population less than 16,045, and a rank less than 58, in Eisenstadt?
SQL: SELECT AVG("population_1991") FROM "list_with_un_locode" WHERE "population_2001"<'16,045' AND "rank"<58 AND "name"='eisenstadt';

Question: What is the highest population in 1991 in Baden Bei Wien, and a 2007 population larger than 25,284?
SQL: SELECT MAX("population_1991") FROM "list_with_un_locode" WHERE "name"='baden bei wien' AND "population_2007">'25,284';