what is the {replaces} for {Francis Bacon} has {position held} as {Attorney General for England and Wales} ?
I want to know the name of the replacement for Francis Bacon as Attorney General for England and Wales?
Who replaced Francis Bacon as Attorney General for England and Wales?
SELECT ?u WHERE { resource:Francis_Bacon property:position_held ?n . ?n property:replaces ?u . ?n property:position_held resource:Attorney_General_for_England_and_Wales }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q37388> .
?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/Q2631987> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q37388 p:P39 ?s . ?s ps:P39 wd:Q2631987 . ?s pq:P1365 ?value}