Task: Text to Code
Input (English): select the row whose age at appointment record of all rows is maximum . the foreign nationality record of this row is canadian .
Output (English): eq { hop { argmax { all_rows ; age at appointment } ; foreign nationality } ; canadian }