When did Thomas Wakley, the Member of the 12th Parliament of the United Kingdom, end his position?
SELECT ?value1 ?value2 WHERE { wd:Q334239 p:P39 ?s . ?s ps:P39 wd:Q41582548 . ?s pq:P1534 ?value1 . ?s pq:P2715 ?value2 }
thomas wakley: Q334239 member of the 12th parliament of the united kingdom: Q41582548