user: ### NOW ANSWER:
Question: What is the average number of regencies (kabupaten) with more than 331 villages and a 2010 population census of 12982204?
Columns: ['Province', 'Capital', 'Population at 2010 Census', 'Area (km²)', 'Density (2010)', 'Geographical unit', 'Number of Cities (kota)', 'Number of Regencies (kabupaten)', 'Number of Districts (kecamatan)', 'Villages']
Types: ['text', 'text', 'real', 'real', 'real', 'text', 'real', 'real', 'real', 'real']
Sample row: ['Special Region of Aceh', 'Banda Aceh', 4494410.0, 57956.0, 77.0, 'Sumatra', 5.0, 18.0, 275.0, 6420.0]
SQL:

assistant: SELECT AVG("Number of Regencies (kabupaten)") FROM "Table" WHERE "Villages" > 331.0 AND "Population at 2010 Census" = 12982204.0;