Question: How many museums are the employer of Wonder Woman (whose occupation is astronaut) or collect Body of Lies?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
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> "Body of Lies" .  } }
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: Body of Lies
function: Relate
dependencies: 6
inputs: collection
forward
function: FilterConcept
dependencies: 7
inputs: museum
function: Or
dependencies: 5
8
function: Count
dependencies: 9