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_47 (date VARCHAR, competition VARCHAR, result VARCHAR)
  ### Question:
  When is the Competition of friendly match with a Result of 2–1?
  ### Answer:
  SELECT date FROM table_name_47 WHERE competition = "friendly match" AND result = "2–1"