What is {position held} of {Martin Van Buren} that is {replaced by} is {Edward Livingston} ?
Edward Livingston succeeded Martin Van Buren in what postion?
Edward Livingston replaced Martin Van Buren in what postion?
SELECT ?b WHERE { resource:Martin_Van_Buren property:position_held ?q . ?q property:position_held ?b . ?q property:replaced_by resource:Edward_Livingston }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11820> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P1366> <http://wikidata.dbpedia.org/resource/Q544396>
} 

SELECT ?obj WHERE { wd:Q11820 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q544396 }