what is the {end time} for {Gustav Stresemann} has {position held} as {Chancellor of Germany} ?
Gustav Stresemann ended his Chancellorship of Germany when?
When did Gustav Stresemann stop being the Chancellor of Germany?
SELECT ?w WHERE { ?c property:position_held resource:Chancellor_of_Germany . ?c property:end_time ?w . resource:Gustav_Stresemann property:position_held ?c }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q103955> .
?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/Q56022> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q103955 p:P39 ?s . ?s ps:P39 wd:Q56022 . ?s pq:P582 ?value}