what is the {end time} for {Charlie's Angels} has {cast member} as {Tanya Roberts} ?
On what date did Tanya Roberts leave the Charlie's Angels cast?
When did Tanya Roberts leave the Charlie's Angels cast?
SELECT ?i WHERE { ?k property:end_time ?i . resource:Charlie's_Angels property:cast_member ?k . ?k property:cast_member resource:Tanya_Roberts }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q617274> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P161> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q232356> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q617274 p:P161 ?s . ?s ps:P161 wd:Q232356 . ?s pq:P582 ?value}