Task: Text to Code
Input (English): select the row whose first elected record of all rows is 2nd minimum . the candidates record of this row is charles edward bennett ( d ) unopposed .
Output (English): eq { hop { nth_argmin { all_rows ; first elected ; 2 } ; candidates } ; charles edward bennett ( d ) unopposed }