Question: How many Grammy Awards (USA) was record producer David Foster nominated for?
Choices: 7
8
9
10
11
12
13
14
15
16
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "Grammy Award" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  } UNION { ?e_1 <nominated_for> ?e . ?e_1 <pred:name> "David Foster" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "record producer" .  } }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: Grammy Award
function: Find
inputs: record producer
function: Relate
dependencies: 3
inputs: occupation
backward
function: Find
inputs: David Foster
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: nominated for
forward
function: FilterConcept
dependencies: 7
inputs: Grammy Award
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 10