Question: Which has higher elevation above sea level, Bendigo or Djibouti (the one that is the twinned administrative body of Key West)?
Choices:
Djibouti
Santo Domingo
Dundee
Cork
Chihuahua
Abidjan
Bergen
Kingston
Kilkenny
Bendigo
Answer: Bendigo
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bendigo" .  } UNION { ?e <pred:name> "Djibouti" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Key West" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Bendigo
function: Find
inputs: Key West
function: Relate
dependencies: 1
inputs: twinned administrative body
backward
function: Find
inputs: Djibouti
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater