Task: Text to Code
Input (English): select the row whose money raised , 2q record of all rows is 3rd maximum . the candidate record of this row is john edwards .
Output (English): eq { hop { nth_argmax { all_rows ; money raised , 2q ; 3 } ; candidate } ; john edwards }