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 WHERE Villages > 331 AND Population at 2010 Census = 12,982,204