Table: marsel_ilhan_grand_slam
Columns: tournament
2008
2009
2010
2011
2012

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

Question: What is the 2011 value of the paris masters, which had A in 2008, A in 2012, A in 2009?
SQL: SELECT "2011" FROM marsel_ilhan_grand_slam WHERE "2008" = 'a' AND "2012" = 'a' AND "2009" = 'a' AND "tournament" = 'paris masters'

Question: What is the 2012 of the hamburg masters?
SQL: SELECT "2012" FROM marsel_ilhan_grand_slam WHERE "tournament" = 'hamburg masters'

Question: What is the 2008 value of the hamburg masters?
SQL: SELECT "2008" FROM marsel_ilhan_grand_slam WHERE "tournament" = 'hamburg masters'

Question: What is the 2009 value with lq in 2012, 2r in 2011, and lq in 2008?
SQL: SELECT "2009" FROM marsel_ilhan_grand_slam WHERE "2012" = 'lq' AND "2011" = '2r' AND "2008" = 'lq'

Question: What is the 2010 value of the monte carlo masters, which had A in 2012?
SQL: SELECT "2010" FROM marsel_ilhan_grand_slam WHERE "2012" = 'a' AND "tournament" = 'monte carlo masters'