What is {located in the administrative territorial entity} of {Villeurbanne} that is {start time} is {1790-3-4} ?
In which place the administrative center of Villeurbanne located in the year 1790?
In 1790, where was the administrative center of Villeurbanne located?
SELECT ?e WHERE { ?h property:located_in_the_administrative_territorial_entity ?e . FILTER ( CONTAINS ( YEAR ( ?d ) , '1790' ) ) . ?h property:start_time ?d . resource:Villeurbanne property:located_in_the_administrative_territorial_entity ?h }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q582> .
?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> <1790-3-4>
} 

SELECT ?obj WHERE { wd:Q582 p:P131 ?s . ?s ps:P131 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1790')) }