what is the {end time} for {Hillary Clinton} has {position held} as {United States senator} ?
When did Hillary Clinton leave her Position as a Senator ?
What is the termination date for Hillary Clinton's time as senator?
SELECT ?h WHERE { ?b property:end_time ?h . ?b property:position_held resource:United States senator . resource:Hillary_Clinton property:position_held ?b }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q6294> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q13217683> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q6294 p:P39 ?s . ?s ps:P39 wd:Q13217683 . ?s pq:P582 ?value}