Question: How many MTV Video Music Awards were nominated to Red Hot Chili Peppers or received by Pearl Jam (the one that was nominated for Grammy Award for Best Rock Song)?
Choices:
6
7
8
9
10
11
12
13
14
15
Answer: 8
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_1 <nominated_for> ?e_2 . ?e_2 <pred:name> "Grammy Award for Best Rock Song" .  } UNION { ?e_1 <nominated_for> ?e . ?e_1 <pred:name> "Red Hot Chili Peppers" .  } }
Program:
function: Find
inputs: Grammy Award for Best Rock Song
function: Relate
dependencies: 0
inputs: nominated for
backward
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: Find
inputs: Red Hot Chili Peppers
function: Relate
dependencies: 6
inputs: nominated for
forward
function: FilterConcept
dependencies: 7
inputs: MTV Video Music Award
function: Or
dependencies: 5
8
function: Count
dependencies: 9