what is the {start time} for {Ternopil Oblast} has {located in the administrative territorial entity} as {Ukraine} ?
In what year did Ternopil Oblast join the Ukraine?
When did Ternopil Oblast become part of Ukraine?
SELECT ?k WHERE { ?x property:located_in_the_administrative_territorial_entity resource:Ukraine . resource:Ternopil_Oblast property:located_in_the_administrative_territorial_entity ?x . ?x property:start_time ?k }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q173407> .
?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/Q212> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q173407 p:P131 ?s . ?s ps:P131 wd:Q212 . ?s pq:P580 ?value}