CREATE TABLE table_name_32 (tournament VARCHAR)

What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?
SELECT 2009 FROM table_name_32 WHERE 2012 = "a" AND 2011 = "1r" AND tournament = "shanghai masters"
SELECT 2009 FROM "table_name_32" WHERE "1r" = 2011 AND "a" = 2012 AND "shanghai masters" = "tournament"