What is {position held} of {Robert Jenkinson, 2nd Earl of Liverpool} that is {replaces} is {William Wyndham Grenville, 1st Baron Grenville} ?
What was Robert Jenkinson, 2nd Earl of Liverpool's position when he was replaced by William Wyndham Grenville, 1st Baron of Grenville?
SELECT ?obj WHERE { wd:Q312569 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q312596 }
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>
} 

When he was replaced by William Wyndham Grenville, 1st Baron of Grenville, what was the position of Robert Jenkinson, 2nd Earl of Liverpool?