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_17 (date VARCHAR, opponent VARCHAR, result VARCHAR, attendance VARCHAR)
  ### Question:
  On what date was the opponent Ayr United, the result 1–0, and the attendance more than 668?
  ### Answer:
  SELECT date FROM table_name_17 WHERE result = "1–0" AND attendance > 668 AND opponent = "ayr united"