What is {position held} of {Ted Stevens} and {end time}
What position did Ted Stevens hold and when did it conclusion?
What position did Ted Stevens hold and when did it end?
SELECT ?z ?t WHERE { ?u property:position_held ?t . resource:Ted_Stevens property:position_held ?u . ?u property:end_time ?z . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q50599> . ?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> ?obj . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q50599 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?value1 . }