Question: How many comedies whose number of seasons is not equal to 45 or mainly depict Mission: Impossible (the one that is released for Nintendo Entertainment System)?
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> "comedy" .  { ?e <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "45"^^xsd:double ) .  } UNION { ?e <main_subject> ?e_1 . ?e_1 <pred:name> "Mission: Impossible" . ?e_1 <platform> ?e_2 . ?e_2 <pred:name> "Nintendo Entertainment System" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of seasons
45
!=
function: FilterConcept
dependencies: 1
inputs: comedy
function: Find
inputs: Nintendo Entertainment System
function: Relate
dependencies: 3
inputs: platform
backward
function: Find
inputs: Mission: Impossible
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: main subject
backward
function: FilterConcept
dependencies: 7
inputs: comedy
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 3