Question: How many albums do we know that were not published in 1998 and that were published after 1970 ?
Choices:
14
15
16
17
18
19
20
21
22
23
Answer: 17
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 != 1998 ) . ?e <publication_date> ?pv_1 . ?pv_1 <pred:year> ?v_1 . FILTER ( ?v_1 > 1970 ) .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1998
!=
function: FilterConcept
dependencies: 1
inputs: album
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
1970
>
function: FilterConcept
dependencies: 4
inputs: album
function: And
dependencies: 2
5
function: Count
dependencies: 6