What is {located in the administrative territorial entity} of {Yerevan} and {end time}
the place did the yerevan administrative territorial entinty located and end its end time?
where did the yerevan administrative territorial entinty located and end its end time?
SELECT ?v ?y WHERE { ?l property:located_in_the_administrative_territorial_entity ?y . resource:Yerevan property:located_in_the_administrative_territorial_entity ?l . ?l property:end_time ?v . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1953> . ?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> ?obj . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q1953 p:P131 ?s . ?s ps:P131 ?obj . ?s pq:P582 ?value1 . }