What is {located in the administrative territorial entity} of {Chișinău} that is {end time} is {1940-8-2} ?
when did Chișinău include in it's administrative territorial region in 08-02-1940?
What did Chișinău include in it's administrative territorial region in 08-02-1940?
SELECT ?o WHERE { FILTER ( CONTAINS ( YEAR ( ?x ) , '1940' ) ) . ?t property:end_time ?x . ?t property:located_in_the_administrative_territorial_entity ?o . resource:Chișinău property:located_in_the_administrative_territorial_entity ?t }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q21197> .
?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> <1940-8-2>
} 

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