CREATE TABLE "list_of_municipalities_in_quebec" (
  "code" real,
  "type" text,
  "name" text,
  "area_km_2" real,
  "population" real,
  "regional_county_municipality" text,
  "region" real
);

Question: Which region in Saint-Simon-Les-Mines has a population smaller than 458?
SQL: SELECT MAX("region") FROM "list_of_municipalities_in_quebec" WHERE "name"='saint-simon-les-mines' AND "population"<458;

Question: What is total population of Saint-Agapit (code 33045)?
SQL: SELECT SUM("region") FROM "list_of_municipalities_in_quebec" WHERE "name"='saint-agapit' AND "code"<33045;

Question: What is the average area larger than Code 19025 but a smaller region than 12?
SQL: SELECT AVG("area_km_2") FROM "list_of_municipalities_in_quebec" WHERE "code">19025 AND "region"<12;

Question: What is the highest region of Saint-Flavien with an area larger than 67.56?
SQL: SELECT MAX("region") FROM "list_of_municipalities_in_quebec" WHERE "name"='saint-flavien' AND "area_km_2">67.56;