what is the {replaces} for {Robert Cecil} has {position held} as {Chancellor of the Duchy of Lancaster} ?
Which Chancellor of the Duchy of Lancaster replaced Robert Cecil?
Who replaced Robert Cecil as Chancellor of the Duchy of Lancaster?
SELECT ?c WHERE { ?p property:replaces ?c . ?p property:position_held resource:Chancellor_of_the_Duchy_of_Lancaster . resource:Robert_Cecil property:position_held ?p }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q12702> .
?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/Q162754> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q12702 p:P39 ?s . ?s ps:P39 wd:Q162754 . ?s pq:P1365 ?value}