What is {county seat for} of {Tunis}, that has {diplomatic relation} is {Malaysia} ?
What is province situate for Tunis, that has political connection with Malaysia?
What is county seat for Tunis, that has diplomatic relation with Malaysia?
SELECT ?y WHERE { ?y property:diplomatic_relation resource:Malaysia . resource:Tunis property:capital_of ?y }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3572> . ?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/Q833> . }
SELECT ?answer WHERE { wd:Q3572 wdt:P1376 ?answer . ?answer wdt:P530 wd:Q833}
Tunisia