Task: Text to Code
Input (English): select the row whose frequency mhz record of all rows is 2nd maximum . the city of license record of this row is lewis , kansas .
Output (English): eq { hop { nth_argmax { all_rows ; frequency mhz ; 2 } ; city of license } ; lewis , kansas }