Instruct: When did the king who entered office in 1012 leave office?
Output: SELECT Left office FROM table WHERE Entered office = 1012