What is {position held} of {Hermann Göring} that is {replaces} is {Franz von Papen} ?
In which role did Franz von Papen replace Herman Goring?
What job did Franz von Papen replace Herman Goring?
SELECT ?a WHERE { ?d property:replaces resource:Franz_von_Papen . resource:Hermann_Göring property:position_held ?d . ?d 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/Q47906> .
?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/Q150552>
} 

SELECT ?obj WHERE { wd:Q47906 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q150552 }