Question: How many islands have a diplomatic relationship with Uruguay or are contained in Lesser Antilles?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Uruguay
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: FilterConcept
dependencies: 1
inputs: island
function: Find
inputs: Lesser Antilles
function: Relate
dependencies: 3
inputs: part of
backward
function: FilterConcept
dependencies: 4
inputs: island
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "island" .  { ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Uruguay" .  } UNION { ?e <part_of> ?e_1 . ?e_1 <pred:name> "Lesser Antilles" .  } }
Answer: 3