What is {position held} of {Constans II} that is {replaces} is {Heraklonas} ?
Costans II held what position that replaces of Heraklonas
What is position held of Constans II that is replaces of Heraklonas ?
SELECT ?j WHERE { ?t property:position_held ?j . ?t property:replaces resource:Heraklonas . resource:Constans_II property:position_held ?t }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41613> .
?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/Q31513>
} 

SELECT ?obj WHERE { wd:Q41613 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q31513 }