Question: How many diseases are a risk factor of cardiovascular disease or whose MeSH Code is C02.839.040?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "disease" .  { ?e <risk_factor> ?e_1 . ?e_1 <pred:name> "cardiovascular disease" .  } UNION { ?e <MeSH_Code> ?pv . ?pv <pred:value> "C02.839.040" .  } }
Program:
function: Find
inputs: cardiovascular disease
function: Relate
dependencies: 0
inputs: risk factor
backward
function: FilterConcept
dependencies: 1
inputs: disease
function: FindAll
function: FilterStr
dependencies: 3
inputs: MeSH Code
C02.839.040
function: FilterConcept
dependencies: 4
inputs: disease
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 4