Question: How many bands play the instrument in the class of instruments whose famous people include Barry White?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "band" . ?e <instrument> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "class of instruments" . ?e_1 <famous_people> ?e_2 . ?e_2 <pred:name> "Barry White" .   }
Program:
function: Find
inputs: Barry White
function: Relate
dependencies: 0
inputs: famous people
backward
function: FilterConcept
dependencies: 1
inputs: class of instruments
function: Relate
dependencies: 2
inputs: instrument
backward
function: FilterConcept
dependencies: 3
inputs: band
function: Count
dependencies: 4