What is {topic of} of {history of Azerbaijan}, that has {has administrative divisions} is {Masally District} ?
The records of Azerbaijan, which carries the Masally District, falls underneath which topic?
The history of Azerbaijan, which contains the Masally District, falls under which topic?
SELECT ?d WHERE { resource:history_of_Azerbaijan property:facet_of ?d . ?d property:contains_administrative_territorial_entity resource:Masally_District }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q188328> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1269>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P150> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q476695> . }
SELECT ?answer WHERE { wd:Q188328 wdt:P1269 ?answer . ?answer wdt:P150 wd:Q476695}