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