Question: What number of comedies have more or less than 600 episodes and also won a Primetime Emmy for Best Actress in a Drama?
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> "comedy" .  { ?e <award_received> ?e_1 . ?e_1 <pred:name> "Primetime Emmy Award for Outstanding Lead Actress in a Drama Series" .  } UNION { ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "600"^^xsd:double ) .  } }
Program:
function: Find
inputs: Primetime Emmy Award for Outstanding Lead Actress in a Drama Series
function: Relate
dependencies: 0
inputs: award received
backward
function: FilterConcept
dependencies: 1
inputs: comedy
function: FindAll
function: FilterNum
dependencies: 3
inputs: number of episodes
600
!=
function: FilterConcept
dependencies: 4
inputs: comedy
function: Or
dependencies: 2
5
function: Count
dependencies: 6