Question: Which one, Casper (the one whose official website is http://www.casperwy.gov) or Summit, has higher elevation (above sea level)?
Choices:
New Haven
Summit
Compton
Franklin
Casper
Columbus
Greenville
Boulder
Waukegan
Lansing
Answer: Casper
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Casper" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.casperwy.gov" . } UNION { ?e <pred:name> "Summit" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Casper
function: FilterStr
dependencies: 0
inputs: official website
http://www.casperwy.gov
function: Find
inputs: Summit
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater