Task: Text to Code
Input (English): select the rows whose area km 2 record is greater than 500 . among these rows , select the rows whose population record is greater than 1000 . the number of such rows is 4 .
Output (English): eq { count { filter_greater { filter_greater { all_rows ; area km 2 ; 500 } ; population ; 1000 } } ; 4 }