what is the {end time} for {The Daily Show} has {cast member} as {Rachael Harris} ?
When did Rachael Harris leave the Daily Show?
What is the { end time } for { the Daily Show } as { Rachael Harris } has { cast member }?
SELECT ?k WHERE { resource:The_Daily_Show property:cast_member ?u . ?u property:cast_member resource:Rachael_Harris . ?u property:end_time ?k }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q824192> .
?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/Q267400> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q824192 p:P161 ?s . ?s ps:P161 wd:Q267400 . ?s pq:P582 ?value}