What is {resident in} of {Mirza Ghalib}, that has {continent} is {Asia} ?
What nationality is Mirza Ghazib, who is from the continent of Asia?
What nationality is Mirza Ghazib, who is from the continent of Asia?
SELECT ?d WHERE { resource:Mirza_Ghalib property:residence ?d . ?d property:continent resource:Asia }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q107000> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P551>. ?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/P30> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q48> . }
SELECT ?answer WHERE { wd:Q107000 wdt:P551 ?answer . ?answer wdt:P30 wd:Q48}