Did {Mecca} {capital of} {Makkah Region} and {Hejaz Vilayet} ?
Was the capital of Makkah Region and Hejaz Vilayet Mecca?
Is true that Mecca was the capital of Makkah Region and Hejaz Vilayet?
ASK WHERE { resource:Mecca property:capital_of resource:Makkah_Region . resource:Mecca property:capital_of resource:Hejaz_Vilayet }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5806> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1376> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q234167>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5806> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1376> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q3558385>. } 
ASK WHERE { wd:Q5806 wdt:P1376 wd:Q234167 . wd:Q5806 wdt:P1376 wd:Q3558385 }