Table: gabashvili_tournaments
Columns: tournament
2006
2007
2008
2009
2010
2011
2012

Question: What is the value for 2010 when the 2012 value is Q2?
SQL: SELECT "2010" FROM gabashvili_tournaments WHERE "2012" = 'q2'

Question: What is the value for 2010 when the value for 2006 is A and the value for 2009 is 1R?
SQL: SELECT "2010" FROM gabashvili_tournaments WHERE "2006" = 'a' AND "2009" = '1r'

Question: What is the value for 2012 when the value for 2009 is 1R and the vale for 2007 is 2R?
SQL: SELECT "2012" FROM gabashvili_tournaments WHERE "2009" = '1r' AND "2007" = '2r'

Question: What is the value for 2008 for the US Open Tournament?
SQL: SELECT "2008" FROM gabashvili_tournaments WHERE "tournament" = 'us open'

Question: What is the value for 2009 when the value for 2011 is 138?
SQL: SELECT "2009" FROM gabashvili_tournaments WHERE "2011" = '138'