Question: How many types of rock music are either a part of heavy metal or were started after 1988?
Choices:
9
10
11
12
13
14
15
16
17
18
Answer: 16
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "rock music" .  { ?e <part_of> ?e_1 . ?e_1 <pred:name> "heavy metal" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1988 ) .  } }
Program:
function: Find
inputs: heavy metal
function: Relate
dependencies: 0
inputs: part of
backward
function: FilterConcept
dependencies: 1
inputs: rock music
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1988
>
function: FilterConcept
dependencies: 4
inputs: rock music
function: Or
dependencies: 2
5
function: Count
dependencies: 6