Question: Which has lower elevation above sea level, Ann Arbor or Rome, USA?
Choices:
Lansing
Columbus
Oakland
Boulder
Ann Arbor
Franklin
Compton
Rome
Greenville
Waukegan
Answer: Rome
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ann Arbor" .  } UNION { ?e <pred:name> "Rome" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Ann Arbor
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: country
backward
function: Find
inputs: Rome
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
less