What is the year First Elected, when the Party is Alp, and when the State is qld?
CREATE TABLE table_name_17 (first_elected VARCHAR, party VARCHAR, state VARCHAR)
SELECT first_elected FROM table_name_17 WHERE party = "alp" AND state = "qld"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (first_elected VARCHAR, party VARCHAR, state VARCHAR) Question: What is the year First Elected, when the Party is Alp, and when the State is qld? [/INST] SELECT first_elected FROM table_name_17 WHERE party = "alp" AND state = "qld" </s>