What is {position held} of {Ólafur Ragnar Grímsson} that is {replaces} is {Vigdís Finnbogadóttir} ?
What position does Ólafur Ragnar Grímsson hold that replaces the one of Vigdís Finnbogadóttir?
What position does Ólafur Ragnar Grímsson hold that replaces the one of Vigdís Finnbogadóttir?
SELECT ?r WHERE { resource:Ólafur_Ragnar_Grímsson property:position_held ?m . ?m property:replaces resource:Vigdís_Finnbogadóttir . ?m 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/Q57284> .
?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/Q189797>
} 

SELECT ?obj WHERE { wd:Q57284 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q189797 }