Question: How many albums were not published in 2007 or were nominated for a Golden Globe Award for Best Foreign Language Film?
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> "album" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2007 ) .  } UNION { ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Golden Globe Award for Best Foreign Language Film" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2007
!=
function: FilterConcept
dependencies: 1
inputs: album
function: Find
inputs: Golden Globe Award for Best Foreign Language Film
function: Relate
dependencies: 3
inputs: nominated for
backward
function: FilterConcept
dependencies: 4
inputs: album
function: Or
dependencies: 2
5
function: Count
dependencies: 6