Question: When did Marrakesh become a city in Morocco?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q101625 p:P17 ?s . ?s ps:P17 wd:Q1028 . ?s pq:P580 ?value}