CREATE TABLE table_name_4 (number_of_districts__kecamatan_ NUMBER, villages VARCHAR2, geographical_unit VARCHAR2, number_of_regencies__kabupaten_ VARCHAR2)

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?
SELECT SUM(number_of_districts__kecamatan_) FROM table_name_4 WHERE geographical_unit = "java" AND number_of_regencies__kabupaten_ > 4 AND villages < 8 OFFSET 577
SELECT SUM("number_of_districts__kecamatan_") FROM "table_name_4" WHERE "geographical_unit" = "java" AND "number_of_regencies__kabupaten_" > 4 AND "villages" < 8 OFFSET 577 ROWS