What is {position held} of {Viktor Yanukovych} that is {replaced by} is {Oleksandr Turchynov} ?
What position did Oleksandr Turchynov take over from Victor Yanukovych?
What position was held by Victor Yanukovych and then by Oleksandr Turchynov?
SELECT ?w WHERE { ?u property:position_held ?w . resource:Viktor_Yanukovych property:position_held ?u . ?u property:replaced_by resource:Oleksandr_Turchynov }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1459658> .
?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/Q15850>
} 

SELECT ?obj WHERE { wd:Q1459658 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q15850 }