Table 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?
SQL: SELECT 2009 FROM table_name_32 WHERE 2012 = "a" AND 2011 = "1r" AND tournament = "shanghai masters"