CREATE TABLE table_8667 ("Province" TEXT, "Capital" TEXT, "Population at 2010 Census" FLOAT, "Area  ( km\\u00b2 ) " FLOAT, "Density  ( 2010 ) " FLOAT, "Geographical unit" TEXT, "Number of Cities  ( kota ) " FLOAT, "Number of Regencies  ( kabupaten ) " FLOAT, "Number of Districts  ( kecamatan ) " FLOAT, "Villages" FLOAT)

What is the average number of regencies (kabupaten) with more than 331 villages and a 2010 population census of 12,982,204?
SELECT AVG("Number of Regencies (kabupaten)") FROM table_8667 WHERE "Villages" > '331' AND "Population at 2010 Census" = '12,982,204'
SELECT AVG("Number of Regencies (kabupaten)") FROM "table_8667" WHERE "Population at 2010 Census" = '12,982,204' AND "Villages" > '331'