Task: Text to Code
Input (English): select the rows whose average record is greater than 500 . the number of such rows is 2 .
Output (English): eq { count { filter_greater { all_rows ; average ; 500 } } ; 2 }