Question: Which one has greater elevation (above sea level), Covington or Savannah (the one that is the death place of Gregg Allman)?
Choices:
Greenville
New Haven
Columbus
Waukegan
Savannah
Covington
Lansing
Compton
Boulder
Oakland
Program:
function: Find
inputs: Covington
function: Find
inputs: Gregg Allman
function: Relate
dependencies: 1
inputs: place of death
forward
function: Find
inputs: Savannah
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Covington" .  } UNION { ?e <pred:name> "Savannah" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "Gregg Allman" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Covington