Question: How many heavy metal groups were either founded after 1977 or not in 1985?
Choices:
10
11
12
13
14
15
16
17
18
19
Answer: 14
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "heavy metal" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1985 ) .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1977 ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1985
!=
function: FilterConcept
dependencies: 1
inputs: heavy metal
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1977
>
function: FilterConcept
dependencies: 4
inputs: heavy metal
function: Or
dependencies: 2
5
function: Count
dependencies: 6