Task: Text to Code
Input (English): select the row whose votes record of all rows is 3rd maximum . the candidate record of this row is pat martin .
Output (English): eq { hop { nth_argmax { all_rows ; votes ; 3 } ; candidate } ; pat martin }