Task: Text to Code
Input (English): select the row whose date of appointment record of all rows is 1st minimum . the replaced by record of this row is peter voets ( caretaker ) .
Output (English): eq { hop { nth_argmin { all_rows ; date of appointment ; 1 } ; replaced by } ; peter voets ( caretaker ) }