Question: Which has lower elevation above sea level, Lexington (the one that is the birthplace of George Clooney) or West Palm Beach?
Choices:
Lansing
West Palm Beach
Lexington
Waukegan
New Haven
Boulder
Oakland
Greenville
Columbus
Franklin
Program:
function: Find
inputs: George Clooney
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Lexington
function: And
dependencies: 1
2
function: Find
inputs: West Palm Beach
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lexington" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "George Clooney" .   } UNION { ?e <pred:name> "West Palm Beach" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: West Palm Beach