Question: How many surnames include the last name of Clive Davis or of the Colin Wilson with Jean-Paul Sartre as his influence?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "family name" .  { ?e_1 <family_name> ?e . ?e_1 <pred:name> "Clive Davis" .  } UNION { ?e_1 <family_name> ?e . ?e_1 <pred:name> "Colin Wilson" . ?e_1 <influenced_by> ?e_2 . ?e_2 <pred:name> "Jean-Paul Sartre" .  } }
Program:
function: Find
inputs: Clive Davis
function: Relate
dependencies: 0
inputs: family name
forward
function: FilterConcept
dependencies: 1
inputs: family name
function: Find
inputs: Jean-Paul Sartre
function: Relate
dependencies: 3
inputs: influenced by
backward
function: Find
inputs: Colin Wilson
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: family name
forward
function: FilterConcept
dependencies: 7
inputs: family name
function: Or
dependencies: 2
8
function: Count
dependencies: 9