What is {position held} of {Henry Cabot Lodge} that is {replaces} is {Henry L. Dawes} ?
SENATOR
What position did Henry L. Dawes hold before being replaced by Henry Cabot Lodge?
SELECT ?p WHERE { ?u property:replaces resource:Henry_L._Dawes . ?u property:position_held ?p . resource:Henry_Cabot_Lodge property:position_held ?u }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q174037> .
?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/Q1506805>
} 

SELECT ?obj WHERE { wd:Q174037 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q1506805 }