user: Question: WhAt wAs 2009, when 2012 wAs A, when 2003 wAs A, And then the TournAment wAs the Madrid Masters?
Columns: ['Tournament', '1998', '1999', '2000', '2001', '2002', '2003', '2004', '2005', '2006', '2007', '2008', '2009', '2010', '2011', '2012']
Types: ['text', 'text', 'text', 'text', 'text', 'text', 'text', 'text', 'text', 'text', 'text', 'text', 'text', 'text', 'text', 'text']
Sample row: ['Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments', 'Grand Slam tournaments']
SQL:

assistant: SELECT "2009" FROM "Table" WHERE "2012" = 'A' AND "2003" = 'A' AND "Tournament" = 'Madrid Masters';