Question: How many rock bands either originate in the United States of America or are associated with the teen pop category?
Choices: 31
32
33
34
35
36
37
38
39
40
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "rock band" .  { ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .  } UNION { ?e_1 <facet_of> ?e . ?e_1 <pred:name> "teen pop" .  } }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: FilterConcept
dependencies: 1
inputs: rock band
function: Find
inputs: teen pop
function: Relate
dependencies: 3
inputs: facet of
forward
function: FilterConcept
dependencies: 4
inputs: rock band
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 40