Question: How many reggae origins are from Jamaica (the one that is located on terrain feature Caribbean) or a part of ska?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "reggae" .  { ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Jamaica" . ?e_1 <located_on_terrain_feature> ?e_2 . ?e_2 <pred:name> "Caribbean" .  } UNION { ?e <part_of> ?e_1 . ?e_1 <pred:name> "ska" .  } }
Program:
function: Find
inputs: Caribbean
function: Relate
dependencies: 0
inputs: located on terrain feature
backward
function: Find
inputs: Jamaica
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country of origin
backward
function: FilterConcept
dependencies: 4
inputs: reggae
function: Find
inputs: ska
function: Relate
dependencies: 6
inputs: part of
backward
function: FilterConcept
dependencies: 7
inputs: reggae
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 4