Task: Text to Code
Input (English): select the row whose grand total record of all rows is maximum . the nato member record of this row is uk .
Output (English): eq { hop { argmax { all_rows ; grand total } ; nato member } ; uk }