Question: Does Java (home of Jakarta) or Aruba have the lower elevation?
Choices:
Ireland
Aruba
Trinidad
Maui
Newfoundland
Cyprus
Java
Hawaii
Tasmania
Puerto Rico
Program:
function: Find
inputs: Jakarta
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Java
function: And
dependencies: 1
2
function: Find
inputs: Aruba
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Java" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Jakarta" .   } UNION { ?e <pred:name> "Aruba" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Aruba