What is {position held} of {Chester W. Nimitz} that is {replaces} is {John H. Hoover} ?
John H. Hoover replaced Chester W. Nimitz for which position?
At what position did John H. Hoover replace Chester W. Nimitz?
SELECT ?p WHERE { ?p property:replaces resource:John_H._Hoover . resource:Chester_W._Nimitz property:position_held ?p . ?p property:position_held ?p }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q217645> .
?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/Q6236887>
} 

SELECT ?obj WHERE { wd:Q217645 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q6236887 }