What is First elected that has republican Party and a Result of retired democratic gain?
CREATE TABLE table_name_61 (first_elected VARCHAR, party VARCHAR, result VARCHAR)
SELECT first_elected FROM table_name_61 WHERE party = "republican" AND result = "retired democratic gain"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (first_elected VARCHAR, party VARCHAR, result VARCHAR) Question: What is First elected that has republican Party and a Result of retired democratic gain? [/INST] SELECT first_elected FROM table_name_61 WHERE party = "republican" AND result = "retired democratic gain" </s>