what is the {end time} for {Ted Stevens} has {position held} as {President pro tempore of the United States Senate} ?
Ted Stevens position as President pro tempore of the United States Senate ends on?
When is Ted Stevens position as President pro tempore of the United States Senate end?
SELECT ?m WHERE { ?u property:position_held resource:President_pro_tempore_of_the_United_States_Senate . ?u property:end_time ?m . resource:Ted_Stevens property:position_held ?u }
select distinct ?value  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> <http://wikidata.dbpedia.org/resource/Q1140848> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q50599 p:P39 ?s . ?s ps:P39 wd:Q1140848 . ?s pq:P582 ?value}