Question: How many alternative rocks either come from the United States of America or originate from mathcore?
Choices:
9
10
11
12
13
14
15
16
17
18
Answer: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "alternative rock" .  { ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .  } UNION { ?e_1 <named_after> ?e . ?e_1 <pred:name> "mathcore" .  } }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: FilterConcept
dependencies: 1
inputs: alternative rock
function: Find
inputs: mathcore
function: Relate
dependencies: 3
inputs: named after
forward
function: FilterConcept
dependencies: 4
inputs: alternative rock
function: Or
dependencies: 2
5
function: Count
dependencies: 6