what is the {replaces} for {Benjamin Disraeli} has {position held} as {Prime Minister of the United Kingdom} ?
Who was Benjamin Disraeli's replacement as Prime Minister of the United Kingdom?
Who replaced Benjamin Disraeli as the Prime Minister of the United Kingdom?
SELECT ?l WHERE { resource:Benjamin_Disraeli property:position_held ?z . ?z property:replaces ?l . ?z property:position_held resource:Prime_Minister_of_the_United_Kingdom }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q82006> .
?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/Q14211> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q82006 p:P39 ?s . ?s ps:P39 wd:Q14211 . ?s pq:P1365 ?value}