What is {position held} of {Franz Joseph I of Austria} that is {replaces} is {Ferdinand I, Emperor of Austria} ?
What position did Franz Joseph I of Austria replace of Ferninand I Emperor of Austria?
SELECT ?obj WHERE { wd:Q51056 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q183579 }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q51056> .
?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/Q183579>
} 

Emperor of Austria Ferninand I took over what position from Franz Joseph I?