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