CREATE TABLE "provinces_of_indonesia" (
  "province" text,
  "capital" text,
  "population_at_2010_census" real,
  "area_km" real,
  "density_2010" real,
  "geographical_unit" text,
  "number_of_cities_kota" real,
  "number_of_regencies_kabupaten" real,
  "number_of_districts_kecamatan" real,
  "villages" real
);

Question: What is the lowest number of districts (kecamatan) in the north sulawesi province with more than 1,510 villages?
SQL: SELECT MIN("number_of_districts_kecamatan") FROM "provinces_of_indonesia" WHERE "province"='north sulawesi' AND "villages">'1,510';

Question: What is the sum of the number of districts (kecamatan) in the geographical unit of java with more than 4 recencies (kabupaten) and less than 8,577 villages?
SQL: SELECT SUM("number_of_districts_kecamatan") FROM "provinces_of_indonesia" WHERE "geographical_unit"='java' AND "number_of_regencies_kabupaten">4 AND "villages"<'8,577';

Question: What is the average number of regencies (kabupaten) with more than 331 villages and a 2010 population census of 12,982,204?
SQL: SELECT AVG("number_of_regencies_kabupaten") FROM "provinces_of_indonesia" WHERE "villages">331 AND "population_at_2010_census"='12,982,204';

Question: What is the lowest number of cities (kota) which has less than 65 districts (kecamatan), an area of 16,424 km², and a 2010 census population less than 3,890,757?
SQL: SELECT MIN("number_of_cities_kota") FROM "provinces_of_indonesia" WHERE "number_of_districts_kecamatan"<65 AND "population_at_2010_census"<'3,890,757' AND "area_km"='16,424';

Question: What is the sum of the number of cities (kota) with an area less than 47,799 km², the capital yogyakarta, and a 2010 density greater than 1,138?
SQL: SELECT SUM("number_of_cities_kota") FROM "provinces_of_indonesia" WHERE "area_km"<'47,799' AND "capital"='yogyakarta' AND "density_2010">'1,138';