Question: How many alternative rock renditions are the genre of Pearl Jam (whose publication date is 2006-05-02) or have a beginning date that is before 1982?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "alternative rock" .  { ?e_1 <genre> ?e . ?e_1 <pred:name> "Pearl Jam" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "2006-05-02"^^xsd:date .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1982 ) .  } }
Program:
function: Find
inputs: Pearl Jam
function: FilterDate
dependencies: 0
inputs: publication date
2006-05-02
=
function: Relate
dependencies: 1
inputs: genre
forward
function: FilterConcept
dependencies: 2
inputs: alternative rock
function: FindAll
function: FilterYear
dependencies: 4
inputs: inception
1982
<
function: FilterConcept
dependencies: 5
inputs: alternative rock
function: Or
dependencies: 3
6
function: Count
dependencies: 7