What is {residence} of {Paul Gauguin} that is {end time} is {1885-4-0} ?
What was the last residence of Paul Gauguin in April 1885?
SELECT ?obj WHERE { wd:Q37693 p:P551 ?s . ?s ps:P551 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1885')) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q37693> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P551> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1885-4-0>
} 

What was the last residence of Paul Gauguin?