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

Question: what is the average population when the regional county municipality is le domaine-du-roy, the type is m and the region is less than 2?
SQL: SELECT AVG("population") FROM quebec_municipalities WHERE "regional_county_municipality" = 'le domaine-du-roy' AND "type" = 'm' AND "region" < 2

Question: what is the regional county municipality when the type is m and the code is less than 91015?
SQL: SELECT "regional_county_municipality" FROM quebec_municipalities WHERE "type" = 'm' AND "code" < 91015