Table: quebec_municipalities_3
Columns: code
type
name
area_km_2
population
regional_county_municipality
region

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

Question: What is total population of Saint-Agapit (code 33045)?
SQL: SELECT SUM("region") FROM quebec_municipalities_3 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 quebec_municipalities_3 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 quebec_municipalities_3 WHERE "name" = 'saint-flavien' AND "area_km_2" > 67.56