What is {position held} of {Louis Jules Trochu} that is {end time} is {1871-1-22} ?
On Jan. 22, 1871 what came to an end for Louis Jules Trochu?
What position ended for Louis Jules Trochu on 1-22-1871?
SELECT ?o WHERE { ?k property:position_held ?o . resource:Louis_Jules_Trochu property:position_held ?k . FILTER ( CONTAINS ( YEAR ( ?z ) , '1871' ) ) . ?k property:end_time ?z }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q441235> .
?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> <1871-1-22>
} 

SELECT ?obj WHERE { wd:Q441235 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1871')) }