Question: When did Thomas Wakley, the Member of the 12th Parliament of the United Kingdom, end his position?
Paraphrase: When did Thomas Wakley of the United Kindom's 12th Paliment, leave his position?
SPARQL (Wikidata): SELECT ?value1 ?value2 WHERE { wd:Q334239 p:P39 ?s . ?s ps:P39 wd:Q41582548 . ?s pq:P1534 ?value1 . ?s pq:P2715 ?value2 }