Question: Tell me the album that has duration under 250 minutes or with publication date other than 1988.
Choices:
22
23
24
25
26
27
28
29
30
31
Answer: 23
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "album" .  { ?e <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> ?v . FILTER ( ?v < "250"^^xsd:double ) .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1988 ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: duration
250 minute
<
function: FilterConcept
dependencies: 1
inputs: album
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
1988
!=
function: FilterConcept
dependencies: 4
inputs: album
function: Or
dependencies: 2
5
function: Count
dependencies: 6