What is {position held} of {George III of Great Britain} that is {replaces} is {George II of Great Britain} ?
In Great Britain, George III replaced George II in what job?
What position did George II of Great Britain hold before he was replaced by George III of Great Britain?
SELECT ?m WHERE { resource:George_III_of_Great_Britain property:position_held ?n . ?n property:position_held ?m . ?n property:replaces resource:George_II_of_Great_Britain }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q127318> .
?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/Q131981>
} 

SELECT ?obj WHERE { wd:Q127318 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q131981 }