What is the {country} for {diplomatic relation} of {African Union}
Which country has a diplomatic relation with the African Union?
SELECT DISTINCT ?t WHERE { ?t property:diplomatic_relation resource:African_Union . ?t rdf:type ontology:country }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P530> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q7159> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q6256> } 
 select distinct ?sbj where { ?sbj wdt:P530 wd:Q7159 . ?sbj wdt:P31 wd:Q6256 } 
Brazil