Question: How many persons are a student of Tony Curtis (whose occupation is poet) or have the ISNI 0000 0001 1469 5876?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" .  { ?e <student_of> ?e_1 . ?e_1 <pred:name> "Tony Curtis" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "poet" .  } UNION { ?e <ISNI> ?pv . ?pv <pred:value> "0000 0001 1469 5876" .  } }
Program:
function: Find
inputs: poet
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Tony Curtis
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: student of
backward
function: FilterConcept
dependencies: 4
inputs: human
function: FindAll
function: FilterStr
dependencies: 6
inputs: ISNI
0000 0001 1469 5876
function: FilterConcept
dependencies: 7
inputs: human
function: Or
dependencies: 5
8
function: Count
dependencies: 9