what is the {replaces} for {Gerhard Schröder} has {position held} as {Federal Chancellor of Germany} ?
Who became Federal Chancellor of Germany after Gerhard Schroder?
Who replaces Gerhard Schröder as Federal Chancellor of Germany?
SELECT ?k WHERE { ?g property:replaces ?k . resource:Gerhard_Schröder property:position_held ?g . ?g property:position_held resource:Federal_Chancellor_of_Germany }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2530> .
?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/Q4970706> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q2530 p:P39 ?s . ?s ps:P39 wd:Q4970706 . ?s pq:P1365 ?value}