Task: Text to Code
Input (English): select the rows whose arena ( capacity ) record fuzzily matches to 5000 . among these rows , select the rows whose previous season record is less than or equal to 5 . the number of such rows is 2 .
Output (English): eq { count { filter_less_eq { filter_eq { all_rows ; arena ( capacity ) ; 5000 } ; previous season ; 5 } } ; 2 }