What is {position held} of {Thomas Babington Macaulay, 1st Baron Macaulay} that is {end time} is {1834-12-29} ?
What position did Thomas Babington Macaulay, 1st Baron Macaulay hold until 1934-12-29?
SELECT ?obj WHERE { wd:Q315989 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1834')) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q315989> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1834-12-29>
} 

Thomas Babington Macaulay held what position until 1934?