What is {country} of {Brest} that is {end time} is {1921-3-17} ?
ended on brest on Match 17th, 1921, what country was it?
Which country of Brest ended on March 17th, 1921?
SELECT ?n WHERE { ?u property:end_time ?z . FILTER ( CONTAINS ( YEAR ( ?z ) , '1921' ) ) . resource:Brest property:country ?u . ?u property:country ?n }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q140147> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1921-3-17>
} 

SELECT ?obj WHERE { wd:Q140147 p:P17 ?s . ?s ps:P17 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1921')) }