Question: How many museums are either the employer of Wonderwoman, the astronaut or collect The Bourne Supremacy?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "museum" .  { ?e_1 <employer> ?e . ?e_1 <pred:name> "Wonder Woman" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "astronaut" .  } UNION { ?e_1 <collection> ?e . ?e_1 <pred:name> "The Bourne Supremacy" .  } }
Program:
function: Find
inputs: astronaut
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Wonder Woman
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: employer
forward
function: FilterConcept
dependencies: 4
inputs: museum
function: Find
inputs: The Bourne Supremacy
function: Relate
dependencies: 6
inputs: collection
forward
function: FilterConcept
dependencies: 7
inputs: museum
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2