Question: Which has higher elevation above sea level, Bali (the one that is an administrative division of Indonesia) or West Chester?
Choices:
Orange County
San Juan County
Washoe County
Lee County
Delaware County
Cass County
Kent County
African Union
Bali
West Chester
Program:
function: Find
inputs: Indonesia
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Bali
function: And
dependencies: 1
2
function: Find
inputs: West Chester
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bali" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Indonesia" .   } UNION { ?e <pred:name> "West Chester" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: West Chester