Question: What is the number of comedies whose number of episodes is less than 950 or greater than 440 ?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of episodes
950
<
function: FilterConcept
dependencies: 1
inputs: comedy
function: FindAll
function: FilterNum
dependencies: 3
inputs: number of episodes
440
>
function: FilterConcept
dependencies: 4
inputs: comedy
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "comedy" .  { ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "950"^^xsd:double ) .  } UNION { ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "440"^^xsd:double ) .  } }
Answer: 3