What is {position held} of {Clement Attlee} that is {replaced by} is {Robert Gascoyne-Cecil, 5th Marquess of Salisbury} ?
What was Clement Attlee's position that Robert Gascoyne-Cecil, 5th Marquess of Salisbury, assume?
What position did Robert Gascoyne-Cecil, 5th Marquess of Salisbury replace Clement Attlee as?
SELECT ?o WHERE { resource:Clement_Attlee property:position_held ?d . ?d property:position_held ?o . ?d property:replaced_by resource:Robert_Gascoyne-Cecil,_5th_Marquess_of_Salisbury }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q129006> .
?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/Q333205>
} 

SELECT ?obj WHERE { wd:Q129006 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q333205 }