text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  CREATE TABLE table_name_31 (tournament VARCHAR)
  ### Question:
  What tournament has a 2008 value of A, q1 in 2005, and 1r in 2004?
  ### Answer:
  SELECT tournament FROM table_name_31 WHERE 2008 = "a" AND 2005 = "q1" AND 2004 = "1r"