Question: How many public companies are Bandai Namco Entertainment's parent or are headquartered in Seattle?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "public company" .  { ?e_1 <parent_organization> ?e . ?e_1 <pred:name> "Bandai Namco Entertainment" .  } UNION { ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Seattle" .  } }
Program:
function: Find
inputs: Bandai Namco Entertainment
function: Relate
dependencies: 0
inputs: parent organization
forward
function: FilterConcept
dependencies: 1
inputs: public company
function: Find
inputs: Seattle
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: FilterConcept
dependencies: 4
inputs: public company
function: Or
dependencies: 2
5
function: Count
dependencies: 6