Question: How many television films have a number of episodes that is not 8200 or is a part of Flight of the Conchords (which was nominated for Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series)?
Choices:
23
24
25
26
27
28
29
30
31
32
Answer: 23
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television film" .  { ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "8200"^^xsd:double ) .  } UNION { ?e_1 <has_part> ?e . ?e_1 <pred:name> "Flight of the Conchords" . ?e_1 <nominated_for> ?e_2 . ?e_2 <pred:name> "Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of episodes
8200
!=
function: FilterConcept
dependencies: 1
inputs: television film
function: Find
inputs: Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series
function: Relate
dependencies: 3
inputs: nominated for
backward
function: Find
inputs: Flight of the Conchords
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: has part
forward
function: FilterConcept
dependencies: 7
inputs: television film
function: Or
dependencies: 2
8
function: Count
dependencies: 9