Question: Does Newport News or Norfolk (the one that shares border with Chesapeake) have greater elevation (above sea level) ?
Choices: Newport News
Lynchburg
Winchester
Fairfax
Hampton
Charlottesville
Norfolk
Danville
Williamsburg
Suffolk
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Newport News" .  } UNION { ?e <pred:name> "Norfolk" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Chesapeake" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Newport News
function: Find
inputs: Chesapeake
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Norfolk
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater
Answer: Newport News