user: Question: On what date did the person leave office who died on October 23, 1887 and who served 2 years?
Columns: ['Name', 'Death', 'Assumed Office', 'Left Office', 'Years in office', 'Monarch']
Types: ['text', 'text', 'text', 'text', 'text', 'text']
Sample row: ['Ke ʻ eaumoku Pāpa ʻ iahiahi', 'March 21, 1804', 'circa 1795', 'March 21, 1804', '9', 'Kamehameha I']
SQL:

assistant: SELECT "Left Office" FROM "Table" WHERE "Years in office" = '2' AND "Death" = 'October 23, 1887';