What is {end cause} and {elected in} of {{Thomas Wakley} has {position held} as {Member of the 12th Parliament of the United Kingdom}}
When did Thomas Wakley of the United Kindom's 12th Paliment, leave his position?
When did Thomas Wakley, the Member of the 12th Parliament of the United Kingdom, end his position?
SELECT ?c ?e WHERE { ?c property:position_held resource:Member_of_the_12th_Parliament_of_the_United_Kingdom . resource:Thomas_Wakley property:position_held ?c . ?c property:elected_in ?e . ?c property:end_cause ?c }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q334239> . ?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/Q41582548>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q334239 p:P39 ?s . ?s ps:P39 wd:Q41582548 . ?s pq:P1534 ?value1 . ?s pq:P2715 ?value2 }