What is {position held} of {Frederick John Robinson, 1st Viscount Goderich} that is {replaced by} is {Arthur Wellesley, 1st Duke of Wellington} ?
In what position was Federick John Robinson, first viscount Goderich supplanted by Arthur Wellesley, First Duke of Wellington?
In what position was Frederick John Robinson, 1st Viscount Goderich replaced by Arthur Wellesley, 1st Duke of Wellington?
SELECT ?z WHERE { ?v property:replaced_by resource:Arthur_Wellesley,_1st_Duke_of_Wellington . ?v property:position_held ?z . resource:F._J._Robinson,_1st_Viscount_Goderich property:position_held ?v }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q312591> .
?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/Q131691>
} 

SELECT ?obj WHERE { wd:Q312591 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q131691 }