Task: Text to Code
Input (English): select the row whose championships record of all rows is 2nd maximum . the teams record of this row is new york nets .
Output (English): eq { hop { nth_argmax { all_rows ; championships ; 2 } ; teams } ; new york nets }