Question: Which has higher elevation above sea level, Niagara Falls (the one whose official website is http://www.niagarafallsusa.org/) or Norwich (the one whose elevation (above sea level) is 17 metre)?
Choices:
Niagara Falls
Franklin
Lansing
Columbus
Compton
Greenville
Norwich
Waukegan
Boulder
Oakland
Answer: Niagara Falls
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Niagara Falls" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.niagarafallsusa.org/" . } UNION { ?e <pred:name> "Norwich" . ?e <elevation_above_sea_level> ?pv_2 . ?pv_2 <pred:unit> "metre" . ?pv_2 <pred:value> "17"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Niagara Falls
function: FilterStr
dependencies: 0
inputs: official website
http://www.niagarafallsusa.org/
function: Find
inputs: Norwich
function: FilterNum
dependencies: 2
inputs: elevation above sea level
17 metre
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
greater