what is the {end time} for {Mulhouse} has {located in the administrative territorial entity} as {Upper Alsace} ?
On what date did Mulhouse stop being located in Upper Alsace?
When did Mulhouse stop being located in the administrative territorial entity of Upper Alsace?
SELECT ?u WHERE { resource:Mulhouse property:located_in_the_administrative_territorial_entity ?t . ?t property:end_time ?u . ?t property:located_in_the_administrative_territorial_entity resource:Upper_Alsace }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q79815> .
?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/Q1999970> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q79815 p:P131 ?s . ?s ps:P131 wd:Q1999970 . ?s pq:P582 ?value}