Question: Does Potsdam or Algiers (the one that is the twinned administrative body of Beijing) have greater elevation (above sea level) ?
Choices:
Kilkenny
Trieste
Chihuahua
Cork
Kingston
Potsdam
Bergen
Algiers
Abidjan
Dundee
Answer: Potsdam
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Potsdam" .  } UNION { ?e <pred:name> "Algiers" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Beijing" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Potsdam
function: Find
inputs: Beijing
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: Find
inputs: Algiers
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater