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_40 (termination_of_mission VARCHAR, appointed_by VARCHAR)
  ### Question:
  What was the Termination of Mission date for the ambassador who was appointed by Barack Obama?
  ### Answer:
  SELECT termination_of_mission FROM table_name_40 WHERE appointed_by = "barack obama"