Question: How many symptoms have an ICD-9 of 789.0 or are a common property of Virginia (whose publication date is 1941-01-01)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "symptom" .  { ?e <ICD-9> ?pv . ?pv <pred:value> "789.0" .  } UNION { ?e_1 <properties_for_this_type> ?e . ?e_1 <pred:name> "Virginia" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "1941-01-01"^^xsd:date .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ICD-9
789.0
function: FilterConcept
dependencies: 1
inputs: symptom
function: Find
inputs: Virginia
function: FilterDate
dependencies: 3
inputs: publication date
1941-01-01
=
function: Relate
dependencies: 4
inputs: properties for this type
forward
function: FilterConcept
dependencies: 5
inputs: symptom
function: Or
dependencies: 2
6
function: Count
dependencies: 7
Answer: 1