What is {position held} of {Louis Philippe I} that is {replaces} is {Casimir-Louis-Victurnien de Rochechouart de Mortemart} ?
What position was held by Louis Philippe I, and then Casimir-Louis-Victurnien De Rochechouart de Mortemart?
What was the position held by Louis Philippe I, later replaced by Casimir-Louis-Victurnien de Rochechouart de Mortemart?
SELECT ?n WHERE { ?k property:position_held ?n . ?k property:replaces resource:Casimir-Louis-Victurnien_de_Rochechouart_de_Mortemart . resource:Louis_Philippe_I property:position_held ?k }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7771> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P1365> <http://wikidata.dbpedia.org/resource/Q2756699>
} 

SELECT ?obj WHERE { wd:Q7771 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q2756699 }