Which was the district that had first elected greater than 2006 and is democratic?
CREATE TABLE table_name_51 (district VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT district FROM table_name_51 WHERE party = "democratic" AND first_elected > 2006
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (district VARCHAR, party VARCHAR, first_elected VARCHAR) Question: Which was the district that had first elected greater than 2006 and is democratic? [/INST] SELECT district FROM table_name_51 WHERE party = "democratic" AND first_elected > 2006 </s>