CREATE TABLE "municipalities" (
  "name" text,
  "area_km" real,
  "pop" real,
  "pop_area_1_km" real,
  "no_p" real,
  "no_c_no_t" text,
  "subregion" text
);

Question: Which Subregion has a No P. of 4, and a Pop/Area (1/km²) of 534?
SQL: SELECT "subregion" FROM "municipalities" WHERE "no_p"=4 AND "pop_area_1_km"=534;

Question: Which Pop/Area (1/km²) has a No P. larger than 1, and a Name of albergaria-a-velha?
SQL: SELECT AVG("pop_area_1_km") FROM "municipalities" WHERE "no_p">1 AND "name"='albergaria-a-velha';

Question: Which Area (km²) is the lowest one that has a Population of 17,089?
SQL: SELECT MIN("area_km") FROM "municipalities" WHERE "pop"='17,089';