Question: How many soundtrack albums are there whose release date is before 2018?
Choices:
8
9
10
11
12
13
14
15
16
17
Answer: 11
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 < 2018 ) .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2018
<
function: FilterConcept
dependencies: 1
inputs: soundtrack album
function: Count
dependencies: 2