Question: Which area has lower elevation above sea level, Kinshasa or Munich (the one that is the headquarter location of Ariola?
Choices:
Kilkenny
Kinshasa
Bergen
Trieste
Abidjan
Santo Domingo
Chihuahua
Dundee
Munich
Cork
Program:
function: Find
inputs: Kinshasa
function: Find
inputs: Ariola
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: Munich
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kinshasa" .  } UNION { ?e <pred:name> "Munich" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Ariola" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kinshasa