Task: Text to Code
Input (English): select the row whose magnitude record of all rows is 2nd maximum . the name record of this row is 2003 bam earthquake .
Output (English): eq { hop { nth_argmax { all_rows ; magnitude ; 2 } ; name } ; 2003 bam earthquake }