What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?
CREATE TABLE table_name_32 (tournament VARCHAR)
SELECT 2009 FROM table_name_32 WHERE 2012 = "a" AND 2011 = "1r" AND tournament = "shanghai masters"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (tournament VARCHAR) Question: What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011? [/INST] SELECT 2009 FROM table_name_32 WHERE 2012 = "a" AND 2011 = "1r" AND tournament = "shanghai masters" </s>