Question: How many symptoms are a common property of The Phantom of the Opera (which ended on 1990-03-19) or caused the death of William Shakespeare (who had the occupation of playwright)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: The Phantom of the Opera
function: FilterDate
dependencies: 0
inputs: end time
1990-03-19
=
function: Relate
dependencies: 1
inputs: properties for this type
forward
function: FilterConcept
dependencies: 2
inputs: symptom
function: Find
inputs: playwright
function: Relate
dependencies: 4
inputs: occupation
backward
function: Find
inputs: William Shakespeare
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: cause of death
forward
function: FilterConcept
dependencies: 8
inputs: symptom
function: Or
dependencies: 3
9
function: Count
dependencies: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "symptom" .  { ?e_1 <properties_for_this_type> ?e . ?e_1 <pred:name> "The Phantom of the Opera" . ?e_1 <end_time> ?pv . ?pv <pred:date> "1990-03-19"^^xsd:date .  } UNION { ?e_1 <cause_of_death> ?e . ?e_1 <pred:name> "William Shakespeare" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "playwright" .  } }
Answer: 1