Task: Text to Code
Input (English): select the rows whose total goals record is greater than 250 . among these rows , select the rows whose total appearances record is less than 400 . the number of such rows is 2 .
Output (English): eq { count { filter_less { filter_greater { all_rows ; total goals ; 250 } ; total appearances ; 400 } } ; 2 }