Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE table_8046 ( "Name" text, "Death" text, "Assumed Office" text, "Left Office" text, "Years in office" text, "Monarch" text )

### Question ###
On what date did the person leave office who died on October 23, 1887 and who served 2 years?

### Accurate SQL ###

SELECT "Left Office" FROM table_8046 WHERE "Years in office" = '2' AND "Death" = 'october 23, 1887'