Question: Does Johannesburg or Kabul (Dewey Decimal Classification 2--581) have the lower elevation?
Choices: Chihuahua
Kabul
Cork
Trieste
Kingston
Bergen
Santo Domingo
Abidjan
Dundee
Johannesburg
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Johannesburg" . } UNION { ?e <pred:name> "Kabul" . ?e <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--581" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Johannesburg
function: Find
inputs: Kabul
function: FilterStr
dependencies: 1
inputs: Dewey Decimal Classification
2--581
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
Answer: Johannesburg