What is {elected in} and {end cause} of {{Ramsay MacDonald} has {position held} as {Member of the 32nd Parliament of the United Kingdom}}
Why did Ramsay Macdonald get chosen to the Part of the 32d parliament of the UK and why did he stop?
Why did Ramsay Macdonald get elected to the MEmber of the 32d parliament of the UK and why did he stop?
SELECT ?b ?h WHERE { resource:Ramsay_MacDonald property:position_held ?q . ?q property:position_held resource:Member_of_the_32nd_Parliament_of_the_United_Kingdom . ?q property:end_cause ?h . ?q property:elected_in ?b }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q166646> . ?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/Q41582584>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q166646 p:P39 ?s . ?s ps:P39 wd:Q41582584 . ?s pq:P2715 ?value1 . ?s pq:P1534 ?value2 }