Question: What disease has pneumonia as one risk factor and whose MeSH Code is C08.381.187?
Choices:
pedophilia
cystic fibrosis
asthma
epilepsy
sepsis
attention deficit hyperactivity disorder
gastroesophageal reflux disease
heart failure
amyotrophic lateral sclerosis
peritonitis
Program:
function: Find
inputs: pneumonia
function: Relate
dependencies: 0
inputs: risk factor
forward
function: FilterConcept
dependencies: 1
inputs: disease
function: FindAll
function: FilterStr
dependencies: 3
inputs: MeSH Code
C08.381.187
function: FilterConcept
dependencies: 4
inputs: disease
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "disease" . ?e_1 <risk_factor> ?e . ?e_1 <pred:name> "pneumonia" .  ?e <MeSH_Code> ?pv . ?pv <pred:value> "C08.381.187" .  }
Answer: cystic fibrosis