Question: For the video game publisher that develops PlayStation 2, how many video-game-console models does it develop?
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> "video game console model" . ?e <developer> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "video game publisher" . ?e_2 <developer> ?e_1 . ?e_2 <pred:name> "PlayStation 2" .   }
Program:
function: Find
inputs: PlayStation 2
function: Relate
dependencies: 0
inputs: developer
forward
function: FilterConcept
dependencies: 1
inputs: video game publisher
function: Relate
dependencies: 2
inputs: developer
backward
function: FilterConcept
dependencies: 3
inputs: video game console model
function: Count
dependencies: 4