Question: How many museums either collects Intolerable Cruelty or were the filming location of I Am Legend?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "museum" .  { ?e_1 <collection> ?e . ?e_1 <pred:name> "Intolerable Cruelty" .  } UNION { ?e_1 <filming_location> ?e . ?e_1 <pred:name> "I Am Legend" .  } }
Program:
function: Find
inputs: Intolerable Cruelty
function: Relate
dependencies: 0
inputs: collection
forward
function: FilterConcept
dependencies: 1
inputs: museum
function: Find
inputs: I Am Legend
function: Relate
dependencies: 3
inputs: filming location
forward
function: FilterConcept
dependencies: 4
inputs: museum
function: Or
dependencies: 2
5
function: Count
dependencies: 6