Question: How many entertainments have the character of Sonic the Hedgehog (the one that is created by Sega)?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "entertainment" . ?e <characters> ?e_1 . ?e_1 <pred:name> "Sonic the Hedgehog" . ?e_1 <creator> ?e_2 . ?e_2 <pred:name> "Sega" .   }
Program:
function: Find
inputs: Sega
function: Relate
dependencies: 0
inputs: creator
backward
function: Find
inputs: Sonic the Hedgehog
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: characters
backward
function: FilterConcept
dependencies: 4
inputs: entertainment
function: Count
dependencies: 5