What is {county seat of} of {Taipei}, that has {diplomatic relation} is {Mali} ?
Who has the nation situate of Taipei, who too has discretionary relations with the nation of Mali?
Who has the country seat of Taipei, who also has diplomatic relations with the country of Mali?
SELECT ?h WHERE { ?h property:diplomatic_relation resource:Mali . resource:Taipei property:capital_of ?h }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1867> . ?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> ?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/P530> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q912> . }
SELECT ?answer WHERE { wd:Q1867 wdt:P1376 ?answer . ?answer wdt:P530 wd:Q912}
Taiwan