Question: Which area has lower elevation above sea level, Kampala or Hong Kong (the one that is the origin country of 2046)?
Choices:
Trieste
Kingston
Kampala
Chihuahua
Dundee
Cork
Santo Domingo
Kilkenny
Bergen
Hong Kong
Answer: Hong Kong
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kampala" .  } UNION { ?e <pred:name> "Hong Kong" . ?e_1 <country_of_origin> ?e . ?e_1 <pred:name> "2046" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Kampala
function: Find
inputs: 2046
function: Relate
dependencies: 1
inputs: country of origin
forward
function: Find
inputs: Hong Kong
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
less