Question: How many albums have a publication date after 1991 or a publication date not in 1970?
Choices:
18
19
20
21
22
23
24
25
26
27
Answer: 21
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 > 1991 ) .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1970 ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1991
>
function: FilterConcept
dependencies: 1
inputs: album
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
1970
!=
function: FilterConcept
dependencies: 4
inputs: album
function: Or
dependencies: 2
5
function: Count
dependencies: 6