what is the {end time} for {William Jennings Bryan} has {position held} as {United States representative} ?
One what date did William Jennings Bryan retire from his position as a United States representative?
When did William Jennings Bryan retire from his position as a United States representative?
SELECT ?a WHERE { resource:William_Jennings_Bryan property:position_held ?r . ?r property:end_time ?a . ?r property:position_held resource:United_States_representative }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q205282> .
?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/Q13218630> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q205282 p:P39 ?s . ?s ps:P39 wd:Q13218630 . ?s pq:P582 ?value}