What is {position held} of {Anatole France} that is {replaced by} is {Paul Valéry} ?
What position did Anatole France hold prior to being replaced by Paul Valéry?
Later replaced by Paul Valéry, what position did Anatole France hold?
SELECT ?e WHERE { resource:Anatole_France property:position_held ?j . ?j property:replaced_by resource:Paul_Valéry . ?j property:position_held ?e }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q42443> .
?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/P1366> <http://wikidata.dbpedia.org/resource/Q200639>
} 

SELECT ?obj WHERE { wd:Q42443 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q200639 }