Question: Which area has higher elevation above sea level, Irving or Houston (the one that is located in Harris County)?
Choices:
Compton
Oakland
Irving
Columbus
Houston
Greenville
Franklin
Boulder
New Haven
Lansing
Answer: Irving
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Irving" .  } UNION { ?e <pred:name> "Houston" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Harris County" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Irving
function: Find
inputs: Harris County
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Houston
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater