Question: How many bands matches the occupation of writer which is the occupation of John Williams (whose native-language name is John williams) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: John Williams
function: FilterStr
dependencies: 0
inputs: name in native language
John williams
function: Relate
dependencies: 1
inputs: occupation
forward
function: FilterConcept
dependencies: 2
inputs: writer
function: Relate
dependencies: 3
inputs: occupation
backward
function: FilterConcept
dependencies: 4
inputs: band
function: Count
dependencies: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "band" . ?e <occupation> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "writer" . ?e_2 <occupation> ?e_1 . ?e_2 <pred:name> "John Williams" . ?e_2 <name_in_native_language> ?pv . ?pv <pred:value> "John williams" .   }
Answer: 0