Question: Does Redlands or Mount Vernon, where Denzel Washington was born, have the higher elevation?
Choices:
Oakland
Boulder
Waukegan
Mount Vernon
Lansing
Franklin
Greenville
Redlands
Compton
Columbus
Program:
function: Find
inputs: Redlands
function: Find
inputs: Denzel Washington
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Mount Vernon
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Redlands" .  } UNION { ?e <pred:name> "Mount Vernon" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Denzel Washington" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Redlands