Question: Does AIDS or malaria have the higher disease burden?
Choices:
epilepsy
gastroesophageal reflux disease
Crohn's disease
attention deficit hyperactivity disorder
bubonic plague
amyotrophic lateral sclerosis
prostate cancer
malaria
peritonitis
AIDS
Program:
function: Find
inputs: AIDS
function: Find
inputs: malaria
function: SelectBetween
dependencies: 0
1
inputs: disease burden
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "AIDS" .  } UNION { ?e <pred:name> "malaria" .  } ?e <disease_burden> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: AIDS