what is the {electoral district} for {Thomas Wakley} has {position held} as {Member of the 12th Parliament of the United Kingdom} ?
Thomas Wakley represented what electoral district in the 12th Parliament of the United Kingdom?
What electoral district did Thomas Wakley as Member of the 12th Parliament of the United Kingdom hold?
SELECT ?d WHERE { resource:Thomas_Wakley property:position_held ?q . ?q property:position_held resource:Member_of_the_12th_Parliament_of_the_United_Kingdom . ?q property:electoral_district ?d }
select distinct ?value  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/P768> ?value. 
} 

SELECT ?value WHERE { wd:Q334239 p:P39 ?s . ?s ps:P39 wd:Q41582548 . ?s pq:P768 ?value}