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