Question: Is the elevation of Greensburg or Williamsport higher?
Choices:
Chester
Pittsburgh
Greensburg
Philadelphia
Wilkes-Barre
Johnstown
Williamsport
Bethlehem
Erie
Harrisburg
Program:
function: Find
inputs: Greensburg
function: Find
inputs: Williamsport
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Greensburg" .  } UNION { ?e <pred:name> "Williamsport" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Greensburg