what is the {end time} for {Otto von Bismarck} has {position held} as {Bundeskanzler (Norddeutscher Bund)} ?
On what date did Otto von Bismarck quit as Federal Chancellor?
When Otto von Bismarck ended as Bundeskanzler (Norddeutscher Bund) ?
SELECT ?j WHERE { ?x property:end_time ?j . resource:Otto_von_Bismarck property:position_held ?x . ?x property:position_held resource:Bundeskanzler_(Norddeutscher_Bund) }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8442> .
?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/Q885840> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q8442 p:P39 ?s . ?s ps:P39 wd:Q885840 . ?s pq:P582 ?value}