Task: Sentence Composition
Input (English): The scientist thanked the secretary who the artist advised .
Output (English): The artist thanked the scientist .