Question: Which area has more people, Ontario (the one whose elevation (above sea level) is 306 metre) or Honolulu (the one whose native label is Honolulu)?
Choices:
Ontario
Dnipro
Utrecht
Halle (Saale)
Aachen
Bordeaux
Honolulu
Wuppertal
Stuttgart
Fort Smith
Program:
function: Find
inputs: Ontario
function: FilterNum
dependencies: 0
inputs: elevation above sea level
306 metre
=
function: Find
inputs: Honolulu
function: FilterStr
dependencies: 2
inputs: native label
Honolulu
function: SelectBetween
dependencies: 1
3
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ontario" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "306"^^xsd:double . } UNION { ?e <pred:name> "Honolulu" . ?e <native_label> ?pv_2 . ?pv_2 <pred:value> "Honolulu" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Honolulu