Question: How many MTV Video Music Awards was Herbie Hancock or John Mayer, rock music star, nominated for?
Choices:
5
6
7
8
9
10
11
12
13
14
Program:
function: Find
inputs: Herbie Hancock
function: Relate
dependencies: 0
inputs: nominated for
forward
function: FilterConcept
dependencies: 1
inputs: MTV Video Music Award
function: Find
inputs: rock music
function: Relate
dependencies: 3
inputs: famous people
forward
function: Find
inputs: John Mayer
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: nominated for
forward
function: FilterConcept
dependencies: 7
inputs: MTV Video Music Award
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "MTV Video Music Award" .  { ?e_1 <nominated_for> ?e . ?e_1 <pred:name> "Herbie Hancock" .  } UNION { ?e_1 <nominated_for> ?e . ?e_1 <pred:name> "John Mayer" . ?e_2 <famous_people> ?e_1 . ?e_2 <pred:name> "rock music" .  } }
Answer: 7