Question: How many soundtrack albums were released prior to 2007 or later than 1995?
Choices:
9
10
11
12
13
14
15
16
17
18
Answer: 12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "soundtrack album" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2007 ) .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1995 ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2007
<
function: FilterConcept
dependencies: 1
inputs: soundtrack album
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
1995
>
function: FilterConcept
dependencies: 4
inputs: soundtrack album
function: Or
dependencies: 2
5
function: Count
dependencies: 6