What is {located in the administrative territorial entity} of {Lancashire} that is {end time} is {1994-4-0} ?
Give the location of the administrative territorial entity of Lancashire that ended in April, 1994.
Where is the administrative territorial entity of Lancashire that ended in April of 1994?
SELECT ?p WHERE { resource:Lancashire property:located_in_the_administrative_territorial_entity ?e . ?e property:end_time ?q . FILTER ( CONTAINS ( YEAR ( ?q ) , '1994' ) ) . ?e property:located_in_the_administrative_territorial_entity ?p }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23077> .
?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/P582> <1994-4-0>
} 

SELECT ?obj WHERE { wd:Q23077 p:P131 ?s . ?s ps:P131 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1994')) }