Question: Which area has lower elevation above sea level, Richmond (the one that is the birthplace of Greg Ayres) or Falls Church?
Choices:
Falls Church
Charlottesville
Danville
Winchester
Williamsburg
Fairfax
Hampton
Suffolk
Richmond
Lynchburg
Program:
function: Find
inputs: Greg Ayres
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Richmond
function: And
dependencies: 1
2
function: Find
inputs: Falls Church
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Richmond" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Greg Ayres" .   } UNION { ?e <pred:name> "Falls Church" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Falls Church