what is the {elected in} for {Robert Gascoyne-Cecil, 3rd Marquess of Salisbury} has {position held} as {Member of the 18th Parliament of the United Kingdom} ?
What is the official position for Robert Gascoyne?
What is the position  elected in  for  Robert Gascoyne - Cecil, 3rd Marquess of Salisbury held as  Member of the 18th Parliament of the United Kingdom ?
SELECT ?c WHERE { resource:Robert_Gascoyne-Cecil,_3rd_Marquess_of_Salisbury property:position_held ?v . ?v property:elected_in ?c . ?v property:position_held resource:Member_of_the_18th_Parliament_of_the_United_Kingdom }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q243705> .
?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> <http://wikidata.dbpedia.org/resource/Q41582558> .
?statement <http://www.wikidata.org/entity/P2715> ?value. 
} 

SELECT ?value WHERE { wd:Q243705 p:P39 ?s . ?s ps:P39 wd:Q41582558 . ?s pq:P2715 ?value}