Question: How many academic degrees were given to Charles Darwin (the one that influenced Friedrich Nietzsche) or received by John Hughes (the one that received Doctor of Philosophy) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Friedrich Nietzsche
function: Relate
dependencies: 0
inputs: influenced by
forward
function: Find
inputs: Charles Darwin
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: academic degree
forward
function: FilterConcept
dependencies: 4
inputs: academic degree
function: Find
inputs: Doctor of Philosophy
function: Relate
dependencies: 6
inputs: award received
backward
function: Find
inputs: John Hughes
function: And
dependencies: 7
8
function: Relate
dependencies: 9
inputs: award received
forward
function: FilterConcept
dependencies: 10
inputs: academic degree
function: Or
dependencies: 5
11
function: Count
dependencies: 12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "academic degree" .  { ?e_1 <academic_degree> ?e . ?e_1 <pred:name> "Charles Darwin" . ?e_2 <influenced_by> ?e_1 . ?e_2 <pred:name> "Friedrich Nietzsche" .  } UNION { ?e_1 <award_received> ?e . ?e_1 <pred:name> "John Hughes" . ?e_1 <award_received> ?e_2 . ?e_2 <pred:name> "Doctor of Philosophy" .  } }
Answer: 2