Question: What is the number of museums that collects Romeo + Juliet or that opened officially in a year other than 1929?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: Romeo + Juliet
function: Relate
dependencies: 0
inputs: collection
forward
function: FilterConcept
dependencies: 1
inputs: museum
function: FindAll
function: FilterYear
dependencies: 3
inputs: date of official opening
1929
!=
function: FilterConcept
dependencies: 4
inputs: museum
function: Or
dependencies: 2
5
function: Count
dependencies: 6
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> "Romeo + Juliet" .  } UNION { ?e <date_of_official_opening> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1929 ) .  } }
Answer: 5