Task: Text to Code
Input (English): select the row whose became queen record of all rows is 2nd minimum . the name record of this row is maria teresa of the two sicilies .
Output (English): eq { hop { nth_argmin { all_rows ; became queen ; 2 } ; name } ; maria teresa of the two sicilies }