Task: Text to Code
Input (English): select the rows whose directed by record fuzzily matches to patrick duffy . the number of such rows is 8 .
Output (English): eq { count { filter_eq { all_rows ; directed by ; patrick duffy } } ; 8 }