what is the {end time} for {Zakarpattia Oblast} has {located in the administrative territorial entity} as {Ukrainian Soviet Socialist Republic} ?
When Zakarpattia Oblast separated itself from Ukrainian Soviet Socialist Republic, which was situated in the administrative territorial entity?
When was Zakarpattia Oblast break from Ukrainian Soviet Socialist Republic which was situated in the administrative territorial entity?
SELECT ?k WHERE { ?t property:located_in_the_administrative_territorial_entity resource:Ukrainian_Soviet_Socialist_Republic . resource:Zakarpattia_Oblast property:located_in_the_administrative_territorial_entity ?t . ?t property:end_time ?k }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q170213> .
?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> <http://wikidata.dbpedia.org/resource/Q133356> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q170213 p:P131 ?s . ?s ps:P131 wd:Q133356 . ?s pq:P582 ?value}