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