Question: Which has greater elevation above sea level, Rockhampton or Djibouti which is the twinned administrative body of Key West?
Choices:
Rockhampton
Djibouti
Abidjan
Trieste
Chihuahua
Kilkenny
Kingston
Cork
Santo Domingo
Dundee
Answer: Djibouti
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rockhampton" .  } 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: Rockhampton
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