On what date did the person leave office who died on October 23, 1887 and who served 2 years?
CREATE TABLE table_name_58 (left_office VARCHAR, years_in_office VARCHAR, death VARCHAR)
SELECT left_office FROM table_name_58 WHERE years_in_office = "2" AND death = "october 23, 1887"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (left_office VARCHAR, years_in_office VARCHAR, death VARCHAR) Question: On what date did the person leave office who died on October 23, 1887 and who served 2 years? [/INST] SELECT left_office FROM table_name_58 WHERE years_in_office = "2" AND death = "october 23, 1887" </s>