Question: Is the elevation of Vermont or of South Dakota higher?
Choices:
New Mexico
Iowa
Hawaii
Vermont
Colorado
Massachusetts
California
Florida
New Jersey
South Dakota
Program:
function: Find
inputs: Vermont
function: Find
inputs: South Dakota
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Vermont" .  } UNION { ?e <pred:name> "South Dakota" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: South Dakota