Question: How many media franchises have more than 4900 episodes or have the character Son Goku?
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> "media franchise" .  { ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "4900"^^xsd:double ) .  } UNION { ?e <characters> ?e_1 . ?e_1 <pred:name> "Son Goku" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of episodes
4900
>
function: FilterConcept
dependencies: 1
inputs: media franchise
function: Find
inputs: Son Goku
function: Relate
dependencies: 3
inputs: characters
backward
function: FilterConcept
dependencies: 4
inputs: media franchise
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 1