What is {position held} of {Archduke Charles, Duke of Teschen} that is {replaced by} is {Karl Philipp, Prince of Schwarzenberg} ?
When Archduke Charles, Duke of Teschen, was replaced by Philipp, Prince of Schwarzenberg, what was his role?
What was the position of Archduke Charles, Duke of Teschen, when he was replaced by Philipp, Prince of Schwarzenberg?
SELECT ?a WHERE { ?t property:replaced_by resource:Karl_Philipp,_Prince_of_Schwarzenberg . resource:Archduke_Charles,_Duke_of_Teschen property:position_held ?t . ?t property:position_held ?a }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q84201> .
?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/Q163755>
} 

SELECT ?obj WHERE { wd:Q84201 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q163755 }