What position did Henry Temple, 3rd Viscount Palmerston hold until June 23, 1841?
SELECT ?obj WHERE { wd:Q193656 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1841')) }
henry temple, 3rd viscount palmerston: Q193656