Question: How many fictional people reside in Leicester or are creations of Ian Fleming (relative of Christopher Lee)?
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> "fictional human" .  { ?e <residence> ?e_1 . ?e_1 <pred:name> "Leicester" .  } UNION { ?e <creator> ?e_1 . ?e_1 <pred:name> "Ian Fleming" . ?e_2 <relative> ?e_1 . ?e_2 <pred:name> "Christopher Lee" .  } }
Program:
function: Find
inputs: Leicester
function: Relate
dependencies: 0
inputs: residence
backward
function: FilterConcept
dependencies: 1
inputs: fictional human
function: Find
inputs: Christopher Lee
function: Relate
dependencies: 3
inputs: relative
forward
function: Find
inputs: Ian Fleming
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: creator
backward
function: FilterConcept
dependencies: 7
inputs: fictional human
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 1