Question: How many job positions abbreviated as prof. are the academic degree obtained by playwright Peter Cook?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: short name
prof.
function: FilterConcept
dependencies: 1
inputs: occupation
function: Find
inputs: playwright
function: Relate
dependencies: 3
inputs: occupation
backward
function: Find
inputs: Peter Cook
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: academic degree
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 <short_name> ?pv . ?pv <pred:value> "prof." . ?e_1 <academic_degree> ?e . ?e_1 <pred:name> "Peter Cook" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "playwright" .  }
Answer: 0