Question: What sovereign state has a diplomatic relation with Australia (that is Strictly Ballroom's country of origin) and Uruguayan citizens?
Choices:
Switzerland
Weimar Republic
Uruguay
Socialist Federal Republic of Yugoslavia
Cambodia
Russian Soviet Federative Socialist Republic
Argentina
Kiribati
Tonga
Djibouti
Program:
function: Find
inputs: Strictly Ballroom
function: Relate
dependencies: 0
inputs: country of origin
forward
function: Find
inputs: Australia
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: diplomatic relation
forward
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: FindAll
function: FilterStr
dependencies: 6
inputs: demonym
uruguayan
function: FilterConcept
dependencies: 7
inputs: sovereign state
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "Australia" . ?e_2 <country_of_origin> ?e_1 . ?e_2 <pred:name> "Strictly Ballroom" .  ?e <demonym> ?pv . ?pv <pred:value> "uruguayan" .  }
Answer: Uruguay