What is {position held} of {Robert Jenkinson, 2nd Earl of Liverpool} that is {replaces} is {William Wyndham Grenville, 1st Baron Grenville} ?
When he was replaced by William Wyndham Grenville, 1st Baron of Grenville, what was the position of Robert Jenkinson, 2nd Earl of Liverpool?
What was Robert Jenkinson, 2nd Earl of Liverpool's position when he was replaced by William Wyndham Grenville, 1st Baron of Grenville?
SELECT ?j WHERE { ?r property:position_held ?j . ?r property:replaces resource:William_Wyndham_Grenville,_1st_Baron_Grenville . resource:Robert_Jenkinson,_2nd_Earl_of_Liverpool property:position_held ?r }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q312569> .
?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/P1365> <http://wikidata.dbpedia.org/resource/Q312596>
} 

SELECT ?obj WHERE { wd:Q312569 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q312596 }