Task: NL2SQL (source dataset: WikiSQL)

Natural language to SQL, also known as NL2SQL, is the problem of generating a SQL query that can be executed on a input table, for a given natural language question.

You will be given an input table called "table" in the markdown format, as well as a question. Your task is to generate an SQL query that can be executed on the input table to answer the question.

Please ensure that the generated SQL only return relevant columns being specifically asked in the question (e.g., in SQL please don't return more than one columns in SELECT if only one column is needed to answer the given question, and similarly please refrain from using SELECT * unless the entire row is needed to answer the question).
 
When generating SQL code, please use the SQLite syntax to ensure that your SQL is executable on SQLite3. Use only columns that are present in the table, always use quotes around your column and table names (some column names have punctuation or special characters), and refer to the columns using the column-names exactly as they appear in the table, do not add or remove punctuation (underscore, slash, etc.)

No explanation, return the code only with the following markdown codeblock format : ```sql<SQL CODE>```. For example, ```sql
SELECT * FROM "table"
``` is a valid format.

Table:
|   Code | Type   | Name                          |   Area (km 2 ) |   Population | Regional County Municipality   |   Region |
|-------:|:-------|:------------------------------|---------------:|-------------:|:-------------------------------|---------:|
|  91005 | m      | lac-bouchette                 |         919.99 |         1297 | le domaine-du-roy              |        2 |
|  91010 | vl     | saint-andré-du-lac-saint-jean |         157.75 |          523 | le domaine-du-roy              |        2 |
|  91015 | m      | saint-françois-de-sales       |         200.56 |          702 | le domaine-du-roy              |        2 |
|  91020 | m      | chambord                      |         157.03 |         1722 | le domaine-du-roy              |        2 |
|  91025 | v      | roberval                      |         168.27 |        10744 | le domaine-du-roy              |        2 |
|  91030 | m      | sainte-hedwidge               |         469.07 |          787 | le domaine-du-roy              |        2 |
|  91035 | m      | saint-prime                   |         147.43 |         2743 | le domaine-du-roy              |        2 |
|  91042 | v      | saint-félicien                |         359.69 |        10486 | le domaine-du-roy              |        2 |
|  91050 | p      | la doré                       |         280.83 |         1486 | le domaine-du-roy              |        2 |
|  92005 | p      | saint-augustin                |         103.96 |          413 | maria-chapdelaine              |        2 |
|  92010 | m      | péribonka                     |         113.46 |          538 | maria-chapdelaine              |        2 |
|  92015 | vl     | sainte-jeanne-d'arc           |         270.88 |         1103 | maria-chapdelaine              |        2 |
|  92022 | v      | dolbeau-mistassini            |         296.57 |        14713 | maria-chapdelaine              |        2 |
|  92030 | m      | albanel                       |         195.69 |         2402 | maria-chapdelaine              |        2 |
|  92040 | v      | normandin                     |         211.96 |         3363 | maria-chapdelaine              |        2 |
|  92045 | m      | saint-thomas-didyme           |         325.36 |          772 | maria-chapdelaine              |        2 |
|  92050 | m      | saint-edmond-les-plaines      |          87.15 |          476 | maria-chapdelaine              |        2 |
|  92055 | m      | girardville                   |         125.8  |         1213 | maria-chapdelaine              |        2 |
|  92060 | m      | notre-dame-de-lorette         |         225.32 |          203 | maria-chapdelaine              |        2 |
|  92065 | m      | saint-eugène-d'argentenay     |          83.37 |          573 | maria-chapdelaine              |        2 |
|  92070 | m      | saint-stanislas               |         159.45 |          312 | maria-chapdelaine              |        2 |
|  93005 | v      | desbiens                      |          10.35 |         1064 | lac-saint-jean-est             |        2 |
|  93012 | v      | métabetchouan–lac-à-la-croix  |         185.86 |         4243 | lac-saint-jean-est             |        2 |
|  93020 | m      | hébertville                   |         263.88 |         2390 | lac-saint-jean-est             |        2 |
|  93025 | vl     | hébertville-station           |          33.28 |         1276 | lac-saint-jean-est             |        2 |
|  93030 | m      | saint-bruno                   |          77.88 |         2324 | lac-saint-jean-est             |        2 |
|  93035 | m      | saint-gédéon                  |          64.17 |         2011 | lac-saint-jean-est             |        2 |
|  93042 | v      | alma                          |         202.1  |        30407 | lac-saint-jean-est             |        2 |
|  93045 | m      | saint-nazaire                 |         147.78 |         1958 | lac-saint-jean-est             |        2 |
|  93055 | m      | labrecque                     |         147.37 |         1248 | lac-saint-jean-est             |        2 |
|  93060 | m      | lamarche                      |          94.79 |          527 | lac-saint-jean-est             |        2 |
|  93065 | p      | l'ascension-de-notre-seigneur |         131.83 |         1926 | lac-saint-jean-est             |        2 |
|  93070 | m      | saint-henri-de-taillon        |          62.95 |          771 | lac-saint-jean-est             |        2 |
|  93075 | m      | sainte-monique                |         155.15 |          898 | lac-saint-jean-est             |        2 |
|  93080 | m      | saint-ludger-de-milot         |         106.81 |          764 | lac-saint-jean-est             |        2 |
|  94068 | v      | saguenay                      |        1166    |       145129 | not part of a rcm              |        2 |
|  94205 | m      | petit-saguenay                |         328.72 |          828 | le fjord-du-saguenay           |        2 |
|  94210 | m      | l'anse-saint-jean             |         527.06 |         1143 | le fjord-du-saguenay           |        2 |
|  94215 | m      | rivière-éternité              |         496.88 |          565 | le fjord-du-saguenay           |        2 |
|  94220 | m      | ferland-et-boilleau           |         418.85 |          606 | le fjord-du-saguenay           |        2 |
|  94225 | m      | saint-félix-d'otis            |         235.94 |          851 | le fjord-du-saguenay           |        2 |
|  94230 | p      | sainte-rose-du-nord           |         119.03 |          403 | le fjord-du-saguenay           |        2 |
|  94235 | m      | saint-fulgence                |         354.68 |         1959 | le fjord-du-saguenay           |        2 |
|  94240 | m      | saint-honoré                  |         189.82 |         4797 | le fjord-du-saguenay           |        2 |
|  94245 | m      | saint-david-de-falardeau      |         379.23 |         2453 | le fjord-du-saguenay           |        2 |
|  94250 | m      | bégin                         |         191.81 |          885 | le fjord-du-saguenay           |        2 |
|  94255 | m      | saint-ambroise                |         148.61 |         3553 | le fjord-du-saguenay           |        2 |
|  94260 | m      | saint-charles-de-bourget      |          62.31 |          664 | le fjord-du-saguenay           |        2 |
|  94265 | m      | larouche                      |          88    |         1066 | le fjord-du-saguenay           |        2 |

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?

table_id: 2-11218948-17
label: SELECT AVG("Population") FROM "table" WHERE "Regional County Municipality" = "le domaine-du-roy" AND "Type" = "m" AND "Region" < 2