what is the {elected in} for {Stanley Baldwin} has {position held} as {Member of the 30th Parliament of the United Kingdom} ?
Who was elected as Member of Parliament after Stanley Baldwin?
Who was elected for the position of the Member of the 30th Parliament of the United Kingdom held by Stanley Baldwin?
SELECT ?t WHERE { resource:Stanley_Baldwin property:position_held ?s . ?s property:elected_in ?t . ?s property:position_held resource:Member_of_the_30th_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/Q166635> .
?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/Q41582581> .
?statement <http://www.wikidata.org/entity/P2715> ?value. 
} 

SELECT ?value WHERE { wd:Q166635 p:P39 ?s . ?s ps:P39 wd:Q41582581 . ?s pq:P2715 ?value}