Question: For the mathematician that has Peter Boyle's (the one that is educated at the University of Glasgow) occupation, how many mathematics are practiced?
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> "mathematics" . ?e <practiced_by> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "mathematician" . ?e_2 <occupation> ?e_1 . ?e_2 <pred:name> "Peter Boyle" . ?e_2 <educated_at> ?e_3 . ?e_3 <pred:name> "University of Glasgow" .   }
Program:
function: Find
inputs: University of Glasgow
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: Peter Boyle
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: occupation
forward
function: FilterConcept
dependencies: 4
inputs: mathematician
function: Relate
dependencies: 5
inputs: practiced by
backward
function: FilterConcept
dependencies: 6
inputs: mathematics
function: Count
dependencies: 7
Answer: 1