Question: How many television series episodes have a publication date outside of 1994 or were named after Purple Heart (which was received by John Kerry)?
Choices:
25
26
27
28
29
30
31
32
33
34
Answer: 25
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series episode" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1994 ) .  } UNION { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Purple Heart" . ?e_2 <award_received> ?e_1 . ?e_2 <pred:name> "John Kerry" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1994
!=
function: FilterConcept
dependencies: 1
inputs: television series episode
function: Find
inputs: John Kerry
function: Relate
dependencies: 3
inputs: award received
forward
function: Find
inputs: Purple Heart
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: named after
backward
function: FilterConcept
dependencies: 7
inputs: television series episode
function: Or
dependencies: 2
8
function: Count
dependencies: 9