what is the {start time} for {Metz} has {located in the administrative territorial entity} as {Moselle} ?
In which year did Moselle replace Metz administratively?
when did moselle replaced metz administratively?
SELECT ?m WHERE { ?e property:located_in_the_administrative_territorial_entity resource:Moselle . resource:Metz property:located_in_the_administrative_territorial_entity ?e . ?e property:start_time ?m }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q22690> .
?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> <http://wikidata.dbpedia.org/resource/Q12652> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q22690 p:P131 ?s . ?s ps:P131 wd:Q12652 . ?s pq:P580 ?value}