Question: Which has lower elevation above sea level, Bali (the one whose administrative code of Indonesia is 51) or West Java?
Choices:
West Java
Delaware County
Cass County
Washoe County
Orange County
Kent County
Lee County
African Union
Bali
San Juan County
Program:
function: Find
inputs: Bali
function: FilterStr
dependencies: 0
inputs: administrative code of Indonesia
51
function: Find
inputs: West Java
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bali" . ?e <administrative_code_of_Indonesia> ?pv_1 . ?pv_1 <pred:value> "51" . } UNION { ?e <pred:name> "West Java" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bali