what is the {replaces} for {Louis-Eugène Cavaignac} has {position held} as {president of the French Republic} ?
Who became the leader of the French Republic after Louis-Eugene Cavaignac?
Who is the replacement for Louis-Eugene Cavaignac's position as President of the French Republic?
SELECT ?h WHERE { ?t property:replaces ?h . ?t property:position_held resource:President_of_the_French_Republic . resource:Louis-Eugène_Cavaignac property:position_held ?t }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q379702> .
?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/Q191954> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q379702 p:P39 ?s . ?s ps:P39 wd:Q191954 . ?s pq:P1365 ?value}