CREATE TABLE "countries_and_dependent_territories" (
  "country_or_territory" text,
  "area_km" real,
  "population" real,
  "population_density_per_km" real,
  "capital" text
);

Question: What's the sum of the population with a population density (per km²) of 24.8?
SQL: SELECT SUM("population") FROM "countries_and_dependent_territories" WHERE "population_density_per_km"=24.8;

Question: What's the average area in canada with a population density (per km²) larger than 3.4?
SQL: SELECT AVG("area_km") FROM "countries_and_dependent_territories" WHERE "country_or_territory"='canada' AND "population_density_per_km">3.4;

Question: What capital has an area of 2166086?
SQL: SELECT "capital" FROM "countries_and_dependent_territories" WHERE "area_km"=2166086;

Question: What's the highest population density for a population less than 6000?
SQL: SELECT MAX("population_density_per_km") FROM "countries_and_dependent_territories" WHERE "population"<6000;

Question: What's the lowest population with a population density (per km²) larger than 1203.7?
SQL: SELECT MIN("population") FROM "countries_and_dependent_territories" WHERE "population_density_per_km">1203.7;