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