user: Question: WhAt is the vAlue in 1987 when it is A in 1999, 1989, And 1997?
Columns: ['Tournament', '1985', '1986', '1987', '1988', '1989', '1990', '1991', '1992', '1993', '1994', '1995', '1996', '1997', '1998', '1999', '2010', '2011']
Types: ['text', 'text', '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', 'Grand Slam tournaments', 'Grand Slam tournaments']
SQL:

assistant: SELECT "1987" FROM "Table" WHERE "1999" = 'A' AND "1989" = 'A' AND "1997" = 'A';