Input (grade 6): The was the poet laureate of Sanjar.
Output (grade 6): He was from Persia, and was the poet laureate of Sanjar.