Question: How many electronic musical instruments were associated with Nancy Cartwright, who was an employee of Stanford University?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "electronic musical instrument" . ?e_1 <instrument> ?e . ?e_1 <pred:name> "Nancy Cartwright" . ?e_1 <employer> ?e_2 . ?e_2 <pred:name> "Stanford University" .   }
Program:
function: Find
inputs: Stanford University
function: Relate
dependencies: 0
inputs: employer
backward
function: Find
inputs: Nancy Cartwright
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: instrument
forward
function: FilterConcept
dependencies: 4
inputs: electronic musical instrument
function: Count
dependencies: 5
Answer: 0