what is the {start time} for {Bangalore} has {located in the administrative territorial entity} as {Mysore State} ?
When was Bangalore in the Mysore State?
When was Bangalore part of the Mysore State?
SELECT ?x WHERE { ?q property:located_in_the_administrative_territorial_entity resource:Mysore_State . ?q property:start_time ?x . resource:Bangalore property:located_in_the_administrative_territorial_entity ?q }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1355> .
?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/Q3374892> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q1355 p:P131 ?s . ?s ps:P131 wd:Q3374892 . ?s pq:P580 ?value}