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