What was 2009, when 2012 was A, when 2003 was A, and then the Tournament was the Madrid Masters?
CREATE TABLE table_name_18 (tournament VARCHAR)
SELECT 2009 FROM table_name_18 WHERE 2012 = "a" AND 2003 = "a" AND tournament = "madrid masters"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (tournament VARCHAR) Question: What was 2009, when 2012 was A, when 2003 was A, and then the Tournament was the Madrid Masters? [/INST] SELECT 2009 FROM table_name_18 WHERE 2012 = "a" AND 2003 = "a" AND tournament = "madrid masters" </s>