Question: Which area has lower elevation above sea level, Brisbane (the one whose local dialing code is 0731) or Belo Horizonte?
Choices:
Kingston
Abidjan
Cork
Trieste
Bergen
Chihuahua
Santo Domingo
Brisbane
Dundee
Belo Horizonte
Answer: Brisbane
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brisbane" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "0731" . } UNION { ?e <pred:name> "Belo Horizonte" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Brisbane
function: FilterStr
dependencies: 0
inputs: local dialing code
0731
function: Find
inputs: Belo Horizonte
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less