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