what is the {replaces} for {Bettino Craxi} has {position held} as {Prime Minister of Italy} ?
Who supplanted Bettino Craxi as Prime Minister of Italy?
Who replaced Bettino Craxi as Prime Minister of Italy?
SELECT ?a WHERE { ?r property:replaces ?a . resource:Bettino_Craxi property:position_held ?r . ?r property:position_held resource:Prime_Minister_of_Italy }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q192818> .
?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/Q796897> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q192818 p:P39 ?s . ?s ps:P39 wd:Q796897 . ?s pq:P1365 ?value}