Task: Text to Code
Input (English): select the row whose kerry record of all rows is 2nd maximum . the county record of this row is fairfield .
Output (English): eq { hop { nth_argmax { all_rows ; kerry ; 2 } ; county } ; fairfield }