Task: Text to Code
Input (English): select the rows whose party record fuzzily matches to republican . among these rows , select the rows whose result record fuzzily matches to resigned . the number of such rows is 5 .
Output (English): eq { count { filter_eq { filter_eq { all_rows ; party ; republican } ; result ; resigned } } ; 5 }