Question: Which has a greater above sea level elevation, Helena (which shares a border with Billings) or Reno (whose local dialing code is 775)?
Choices: Waukegan
Compton
Boulder
Columbus
Greenville
Oakland
New Haven
Franklin
Helena
Reno
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Helena" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Billings" . } UNION { ?e <pred:name> "Reno" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "775" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Billings
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Helena
function: And
dependencies: 1
2
function: Find
inputs: Reno
function: FilterStr
dependencies: 4
inputs: local dialing code
775
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
greater
Answer: Reno