Question: Which one, Darwin (the one whose official name is Darwin) or Phnom Penh, has less elevation (above sea level)?
Choices:
Darwin
Santo Domingo
Phnom Penh
Chihuahua
Kilkenny
Kingston
Dundee
Trieste
Cork
Bergen
Program:
function: Find
inputs: Darwin
function: FilterStr
dependencies: 0
inputs: official name
Darwin
function: Find
inputs: Phnom Penh
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Darwin" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "Darwin" . } UNION { ?e <pred:name> "Phnom Penh" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Darwin