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