Question: What number of songs were nominated for an Oscar for best original song or were published in a year other than 1995?
Choices:
12
13
14
15
16
17
18
19
20
21
Answer: 12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "song" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1995 ) .  } UNION { ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Original Song" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1995
!=
function: FilterConcept
dependencies: 1
inputs: song
function: Find
inputs: Academy Award for Best Original Song
function: Relate
dependencies: 3
inputs: nominated for
backward
function: FilterConcept
dependencies: 4
inputs: song
function: Or
dependencies: 2
5
function: Count
dependencies: 6