Question: How many make-believe people are modeled on the Lois Lane created by Joe Shuster or are UK citizens?
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 <based_on> ?e_1 . ?e_1 <pred:name> "Lois Lane" . ?e_1 <creator> ?e_2 . ?e_2 <pred:name> "Joe Shuster" .  } UNION { ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } }
Program:
function: Find
inputs: Joe Shuster
function: Relate
dependencies: 0
inputs: creator
backward
function: Find
inputs: Lois Lane
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
backward
function: FilterConcept
dependencies: 4
inputs: fictional human
function: Find
inputs: United Kingdom
function: Relate
dependencies: 6
inputs: country of citizenship
backward
function: FilterConcept
dependencies: 7
inputs: fictional human
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 3