Question: Does Launceston or Nuremberg that shares border with Erlangen have less elevation above sea level?
Choices:
Chihuahua
Kilkenny
Launceston
Nuremberg
Bergen
Kingston
Abidjan
Dundee
Trieste
Santo Domingo
Answer: Launceston
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Launceston" .  } UNION { ?e <pred:name> "Nuremberg" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Erlangen" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Launceston
function: Find
inputs: Erlangen
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Nuremberg
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
less