Task: Text to Code
Input (English): select the row whose vote percentage record of all rows is 2nd maximum . the party record of this row is social democratic party ( spd ) .
Output (English): eq { hop { nth_argmax { all_rows ; vote percentage ; 2 } ; party } ; social democratic party ( spd ) }