Question: What is the number of Primetime Emmy Awards with the inception time prior to 1979 or that got nominated to Bewitched (which has 254 episodes)
Choices:
13
14
15
16
17
18
19
20
21
22
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1979
<
function: FilterConcept
dependencies: 1
inputs: Primetime Emmy Award
function: Find
inputs: Bewitched
function: FilterNum
dependencies: 3
inputs: number of episodes
254
=
function: Relate
dependencies: 4
inputs: nominated for
forward
function: FilterConcept
dependencies: 5
inputs: Primetime Emmy Award
function: Or
dependencies: 2
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "Primetime Emmy Award" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1979 ) .  } UNION { ?e_1 <nominated_for> ?e . ?e_1 <pred:name> "Bewitched" . ?e_1 <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "254"^^xsd:double .  } }
Answer: 22