Question: Which has a greater elevation above sea level, Lincoln ( in the United States of America) or Escondido?
Choices:
Boulder
Franklin
Waukegan
Oakland
Greenville
New Haven
Escondido
Lincoln
Lansing
Columbus
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Lincoln
function: And
dependencies: 1
2
function: Find
inputs: Escondido
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lincoln" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Escondido" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lincoln