What is {located in the administrative territorial entity} of {Yerevan} and {end time}
where did the yerevan authoritative regional entinty found and conclusion its conclusion time?
where did the yerevan administrative territorial entinty located and end its end time?
SELECT ?g ?b WHERE { ?d property:located_in_the_administrative_territorial_entity ?b . resource:Yerevan property:located_in_the_administrative_territorial_entity ?d . ?d property:end_time ?g . }
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 . }