what is the {replaces} for {A. Bartlett Giamatti} has {position held} as {List of presidents of Yale University} ?
When A. Bartlett Giamatti stepped down from his job as president of Yale University, who took his place?
Who replaced A. Bartlett Giamatti in his position as the president of Yale University?
SELECT ?l WHERE { resource:A._Bartlett_Giamatti property:position_held ?r . ?r property:position_held resource:list_of_presidents_of_Yale_University . ?r property:replaces ?l }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q278559> .
?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/Q6634830> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q278559 p:P39 ?s . ?s ps:P39 wd:Q6634830 . ?s pq:P1365 ?value}