Question: How many animated films have the producer Danny Elfman or have less than 55 number of seasons?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated film" .  { ?e <producer> ?e_1 . ?e_1 <pred:name> "Danny Elfman" .  } UNION { ?e <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "55"^^xsd:double ) .  } }
Program:
function: Find
inputs: Danny Elfman
function: Relate
dependencies: 0
inputs: producer
backward
function: FilterConcept
dependencies: 1
inputs: animated film
function: FindAll
function: FilterNum
dependencies: 3
inputs: number of seasons
55
<
function: FilterConcept
dependencies: 4
inputs: animated film
function: Or
dependencies: 2
5
function: Count
dependencies: 6