What is {position held} of {Bertil Ohlin} that is {replaced by} is {Gísli Jónsson} ?
What position was Bertil Ohlin in until he was replaced by Gisli Jonsson?
Gisli Jonsson replaced Bertil Ohlin in what position?
SELECT ?a WHERE { ?r property:position_held ?a . ?r property:replaced_by resource:Gísli_Jónsson . resource:Bertil_Ohlin property:position_held ?r }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q179493> .
?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/Q16405049>
} 

SELECT ?obj WHERE { wd:Q179493 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q16405049 }