what is the {replaces} for {Benjamin Harrison} has {position held} as {President of the United States} ?
Who supplanted Benjamin Harrison as President of the USA?
Who replaced Benjamin Harrison as President of the United States?
SELECT ?q WHERE { resource:Benjamin_Harrison property:position_held ?a . ?a property:position_held resource:President_of_the_United_States . ?a property:replaces ?q }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q35678> .
?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/Q11696> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q35678 p:P39 ?s . ?s ps:P39 wd:Q11696 . ?s pq:P1365 ?value}