what is the {end time} for {Ted Stevens} has {position held} as {President pro tempore of the United States Senate} ?
When is Ted Stevens position as President pro tempore of the United States Senate end?
SELECT ?value WHERE { wd:Q50599 p:P39 ?s . ?s ps:P39 wd:Q1140848 . ?s pq:P582 ?value}
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. 
} 

Ted Stevens position as President pro tempore of the United States Senate ends on?