what is the {replaces} for {Philippe Pétain} has {position held} as {Deputy Prime Minister of France} ?
Give me the name of the person that will replace Philippe Pétain as Deputy Prime Minister of France.
who replaces for Philippe Pétain has position held as Deputy Prime Minister of France ?
SELECT ?g WHERE { ?x property:position_held resource:Deputy_Prime_Minister_of_France . resource:Philippe_Pétain property:position_held ?x . ?x property:replaces ?g }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5721> .
?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/Q19018261> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q5721 p:P39 ?s . ?s ps:P39 wd:Q19018261 . ?s pq:P1365 ?value}