Question: Does Palo Alto (that is the birthplace of Teri Hatcher) or Upland have the lower elevation above sea level?
Choices:
New Haven
Compton
Franklin
Lansing
Oakland
Columbus
Greenville
Upland
Palo Alto
Boulder
Program:
function: Find
inputs: Teri Hatcher
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Palo Alto
function: And
dependencies: 1
2
function: Find
inputs: Upland
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Palo Alto" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Teri Hatcher" .   } UNION { ?e <pred:name> "Upland" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Palo Alto