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