what is the {end time} for {Grodno} has {country} as {Second Polish Republic} ?
Tell me end time for Grodno has country as Second Polish Republic ?
SELECT ?value WHERE { wd:Q181376 p:P17 ?s . ?s ps:P17 wd:Q207272 . ?s pq:P582 ?value}
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q181376> .
?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> <http://wikidata.dbpedia.org/resource/Q207272> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

date Grodno became the 2nd polish republic?