what is the {start time} for {Mecca} has {located in the administrative territorial entity} as {Mamluk Sultanate} ?
The administrative territorial entity of the Mamluk Sultanate was the location of Mecca when?
When did Mecca start being located in the administrative territorial entity of the Mamluk Sultanate?
SELECT ?b WHERE { ?j property:located_in_the_administrative_territorial_entity resource:Mamluk_Sultanate . ?j property:start_time ?b . resource:Mecca property:located_in_the_administrative_territorial_entity ?j }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5806> .
?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/Q282428> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q5806 p:P131 ?s . ?s ps:P131 wd:Q282428 . ?s pq:P580 ?value}