Question: How many heavy metal renditions are a part of hard rock or have an origination date that is not in 1977?
Choices:
12
13
14
15
16
17
18
19
20
21
Answer: 13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "heavy metal" .  { ?e <part_of> ?e_1 . ?e_1 <pred:name> "hard rock" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1977 ) .  } }
Program:
function: Find
inputs: hard rock
function: Relate
dependencies: 0
inputs: part of
backward
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