Question: How many symptoms caused the death of William Shakespeare whose native language is English or whose ICD-9 is 698?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: native language
backward
function: Find
inputs: William Shakespeare
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cause of death
forward
function: FilterConcept
dependencies: 4
inputs: symptom
function: FindAll
function: FilterStr
dependencies: 6
inputs: ICD-9
698
function: FilterConcept
dependencies: 7
inputs: symptom
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "symptom" .  { ?e_1 <cause_of_death> ?e . ?e_1 <pred:name> "William Shakespeare" . ?e_1 <native_language> ?e_2 . ?e_2 <pred:name> "English" .  } UNION { ?e <ICD-9> ?pv . ?pv <pred:value> "698" .  } }
Answer: 2