Question: Which has lower elevation above sea level, Flagstaff or Dover, capital of Delaware?
Choices:
Compton
Dover
Franklin
Boulder
Flagstaff
Oakland
Waukegan
Greenville
New Haven
Columbus
Program:
function: Find
inputs: Flagstaff
function: Find
inputs: Delaware
function: Relate
dependencies: 1
inputs: capital
forward
function: Find
inputs: Dover
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Flagstaff" .  } UNION { ?e <pred:name> "Dover" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Delaware" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Dover