Task: Text to Code
Input (English): select the row whose listed record of all rows is 3rd maximum . the county record of this row is lake .
Output (English): eq { hop { nth_argmax { all_rows ; listed ; 3 } ; county } ; lake }