what is the {end time} for {John Russell, 1st Earl Russell} has {position held} as {Lord President of the Council} ?
John Russel, 1st Earl Russell left the position of Lord President of the Council in what year?
Which was the last year John Russell, 1st Earl Russell held the position of the Lord President of the Council?
SELECT ?r WHERE { ?h property:position_held resource:Lord_President_of_the_Council . resource:John_Russell,_1st_Earl_Russell property:position_held ?h . ?h property:end_time ?r }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q157259> .
?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/Q943379> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q157259 p:P39 ?s . ?s ps:P39 wd:Q943379 . ?s pq:P582 ?value}