Task: Text to Code
Input (English): select the row whose inn record of all rows is 2nd minimum . the team record of this row is arizona diamondbacks .
Output (English): eq { hop { nth_argmin { all_rows ; inn ; 2 } ; team } ; arizona diamondbacks }