What is {located in the administrative territorial entity} of {Montpellier} that is {start time} is {1790-3-4} ?
Was it in 1790-3-4 when Monpellier became administrative territory?
did montpellier become the adnistrative territory in 1790-3-4?
SELECT ?y WHERE { ?t property:start_time ?l . resource:Montpellier property:located_in_the_administrative_territorial_entity ?t . ?t property:located_in_the_administrative_territorial_entity ?y . FILTER ( CONTAINS ( YEAR ( ?l ) , '1790' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q6441> .
?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:Q6441 p:P131 ?s . ?s ps:P131 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1790')) }