Question: How many kinds of rock music were influenced by punk rock or invented later than 1981?
Choices:
33
34
35
36
37
38
39
40
41
42
Answer: 38
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "rock music" .  { ?e <influenced_by> ?e_1 . ?e_1 <pred:name> "punk rock" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1981 ) .  } }
Program:
function: Find
inputs: punk rock
function: Relate
dependencies: 0
inputs: influenced by
backward
function: FilterConcept
dependencies: 1
inputs: rock music
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1981
>
function: FilterConcept
dependencies: 4
inputs: rock music
function: Or
dependencies: 2
5
function: Count
dependencies: 6