Question: How many animated series with more than 5 seasons or whose production company is Hasbro, Inc.?
Choices: 12
13
14
15
16
17
18
19
20
21
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated series" .  { ?e <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "5"^^xsd:double ) .  } UNION { ?e <production_company> ?e_1 . ?e_1 <pred:name> "Hasbro, Inc." .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of seasons
5
>
function: FilterConcept
dependencies: 1
inputs: animated series
function: Find
inputs: Hasbro, Inc.
function: Relate
dependencies: 3
inputs: production company
backward
function: FilterConcept
dependencies: 4
inputs: animated series
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 15