Question: Is it Duluth or Charleston (the birthplace of Arthur Freed) the one with greater elevation above sea level ?
Choices:
Franklin
Duluth
Greenville
Oakland
Charleston
Columbus
Lansing
New Haven
Waukegan
Boulder
Program:
function: Find
inputs: Duluth
function: Find
inputs: Arthur Freed
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Charleston
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Duluth" .  } UNION { ?e <pred:name> "Charleston" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Arthur Freed" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Duluth