Task: Sentence Composition
Input (English): The senators encouraged the tourist who the professor thanked .
Output (English): The professor encouraged the senators .