Question: What is the number of singles whose beats per minute are under 70 or release date is not in 2013?
Choices:
23
24
25
26
27
28
29
30
31
32
Answer: 30
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "single" .  { ?e <beats_per_minute> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "70"^^xsd:double ) .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2013 ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: beats per minute
70
<
function: FilterConcept
dependencies: 1
inputs: single
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
2013
!=
function: FilterConcept
dependencies: 4
inputs: single
function: Or
dependencies: 2
5
function: Count
dependencies: 6