Question: How many Hip Hop musical groups either have Latin American origins or have the same genre as Ice Cube?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "hip hop music" .  { ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Latin America" .  } UNION { ?e_1 <genre> ?e . ?e_1 <pred:name> "Ice Cube" .  } }
Program:
function: Find
inputs: Latin America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: FilterConcept
dependencies: 1
inputs: hip hop music
function: Find
inputs: Ice Cube
function: Relate
dependencies: 3
inputs: genre
forward
function: FilterConcept
dependencies: 4
inputs: hip hop music
function: Or
dependencies: 2
5
function: Count
dependencies: 6