Question: How many jobs practice ice hockey and are the work field of John Davis, the judge?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: ice hockey
function: Relate
dependencies: 0
inputs: practiced by
forward
function: FilterConcept
dependencies: 1
inputs: occupation
function: Find
inputs: judge
function: Relate
dependencies: 3
inputs: occupation
backward
function: Find
inputs: John Davis
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: field of work
forward
function: FilterConcept
dependencies: 7
inputs: occupation
function: And
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "occupation" . ?e_1 <practiced_by> ?e . ?e_1 <pred:name> "ice hockey" .  ?e_2 <field_of_work> ?e . ?e_2 <pred:name> "John Davis" . ?e_2 <occupation> ?e_3 . ?e_3 <pred:name> "judge" .  }
Answer: 0