Question: Which area has higher elevation above sea level, Annapolis (the one that contains United States Naval Academy) or Decatur (the one whose elevation (above sea level) is 318 metre)?
Choices:
Oakland
Annapolis
Boulder
Greenville
Decatur
New Haven
Franklin
Lansing
Compton
Columbus
Program:
function: Find
inputs: United States Naval Academy
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Annapolis
function: And
dependencies: 1
2
function: Find
inputs: Decatur
function: FilterNum
dependencies: 4
inputs: elevation above sea level
318 metre
=
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Annapolis" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "United States Naval Academy" . } UNION { ?e <pred:name> "Decatur" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "318"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Decatur