Question: How many subsidiary companies belong to the video gaming industry or published Kung Fu Panda (the one that is released for PlayStation 3) ?
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> "subsidiary company" .  { ?e <industry> ?e_1 . ?e_1 <pred:name> "video game industry" .  } UNION { ?e_1 <publisher> ?e . ?e_1 <pred:name> "Kung Fu Panda" . ?e_1 <platform> ?e_2 . ?e_2 <pred:name> "PlayStation 3" .  } }
Program:
function: Find
inputs: video game industry
function: Relate
dependencies: 0
inputs: industry
backward
function: FilterConcept
dependencies: 1
inputs: subsidiary company
function: Find
inputs: PlayStation 3
function: Relate
dependencies: 3
inputs: platform
backward
function: Find
inputs: Kung Fu Panda
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: publisher
forward
function: FilterConcept
dependencies: 7
inputs: subsidiary company
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2