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