Question: How many theatrical genres have a number of episodes not equal to 340 or whose producer is Tony Thomas (who was born in Los Angeles)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "theatrical genre" .  { ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "340"^^xsd:double ) .  } UNION { ?e <producer> ?e_1 . ?e_1 <pred:name> "Tony Thomas" . ?e_1 <place_of_birth> ?e_2 . ?e_2 <pred:name> "Los Angeles" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of episodes
340
!=
function: FilterConcept
dependencies: 1
inputs: theatrical genre
function: Find
inputs: Los Angeles
function: Relate
dependencies: 3
inputs: place of birth
backward
function: Find
inputs: Tony Thomas
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: producer
backward
function: FilterConcept
dependencies: 7
inputs: theatrical genre
function: Or
dependencies: 2
8
function: Count
dependencies: 9