Task: Text to Code
Input (English): select the rows whose written by record fuzzily matches to man of action . among these rows , select the rows whose directed by record fuzzily matches to sam montes . the number of such rows is 2 .
Output (English): eq { count { filter_eq { filter_eq { all_rows ; written by ; man of action } ; directed by ; sam montes } } ; 2 }