Question: Which has less elevation above sea level, Concord that borders Walnut Creek or Poughkeepsie?
Choices:
Oakland
Poughkeepsie
Boulder
Columbus
Waukegan
Concord
Lansing
New Haven
Compton
Franklin
Program:
function: Find
inputs: Walnut Creek
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Concord
function: And
dependencies: 1
2
function: Find
inputs: Poughkeepsie
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Concord" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Walnut Creek" .   } UNION { ?e <pred:name> "Poughkeepsie" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Concord