What is {located in the administrative territorial entity} of {Ulan-Ude} that is {end time} is {1923-5-29} ?
Tell me what was located in Ulan-Ude on May 29, 1923.
What was located in Ulan-Ude on May 29, 1923?
SELECT ?e WHERE { FILTER ( CONTAINS ( YEAR ( ?p ) , '1923' ) ) . resource:Ulan-Ude property:located_in_the_administrative_territorial_entity ?u . ?u property:end_time ?p . ?u property:located_in_the_administrative_territorial_entity ?e }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q6816> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1923-5-29>
} 

SELECT ?obj WHERE { wd:Q6816 p:P131 ?s . ?s ps:P131 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1923')) }