What's the value for 2007 when 2011 is a and 2009 is q2?
CREATE TABLE table_name_12 (Id VARCHAR)
SELECT 2007 FROM table_name_12 WHERE 2011 = "a" AND 2009 = "q2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (Id VARCHAR) Question: What's the value for 2007 when 2011 is a and 2009 is q2? [/INST] SELECT 2007 FROM table_name_12 WHERE 2011 = "a" AND 2009 = "q2" </s>