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