Question: How many infectious diseases whose MeSH Code is C01.539.895 or whose symptom is diarrhea?
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> "infectious disease" .  { ?e <MeSH_Code> ?pv . ?pv <pred:value> "C01.539.895" .  } UNION { ?e_1 <symptom_of> ?e . ?e_1 <pred:name> "diarrhea" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: MeSH Code
C01.539.895
function: FilterConcept
dependencies: 1
inputs: infectious disease
function: Find
inputs: diarrhea
function: Relate
dependencies: 3
inputs: symptom of
forward
function: FilterConcept
dependencies: 4
inputs: infectious disease
function: Or
dependencies: 2
5
function: Count
dependencies: 6