CREATE TABLE table_36346 ("Throne Name" TEXT, "Title" TEXT, "Born-Died" TEXT, "Entered office" TEXT, "Left office" TEXT, "Family Relations" TEXT)

When did the king who entered office in 1012 leave office?
SELECT "Left office" FROM table_36346 WHERE "Entered office" = '1012'
SELECT "Left office" FROM "table_36346" WHERE "Entered office" = '1012'