Question: When was Ganja a part of Azerbaijan?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q131290 p:P131 ?s . ?s ps:P131 wd:Q227 . ?s pq:P580 ?value}