CREATE TABLE table_name_40 (termination_of_mission VARCHAR(255), appointed_by VARCHAR(255))
What was the Termination of Mission date for the ambassador who was appointed by Barack Obama?
    
SQL: SELECT termination_of_mission FROM table_name_40 WHERE appointed_by = "barack obama"