Question: How many MTV Video Music Awards were given to Pearl Jam (the one that won MTV Video Music Award for Best Rock Video) or were established after 1984 ?
Choices:
7
8
9
10
11
12
13
14
15
16
Answer: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "MTV Video Music Award" .  { ?e_1 <award_received> ?e . ?e_1 <pred:name> "Pearl Jam" . ?e_2 <winner> ?e_1 . ?e_2 <pred:name> "MTV Video Music Award for Best Rock Video" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1984 ) .  } }
Program:
function: Find
inputs: MTV Video Music Award for Best Rock Video
function: Relate
dependencies: 0
inputs: winner
forward
function: Find
inputs: Pearl Jam
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: award received
forward
function: FilterConcept
dependencies: 4
inputs: MTV Video Music Award
function: FindAll
function: FilterYear
dependencies: 6
inputs: inception
1984
>
function: FilterConcept
dependencies: 7
inputs: MTV Video Music Award
function: Or
dependencies: 5
8
function: Count
dependencies: 9