Question: Does San Bernardino or Hamilton (whose official website is http://www.hamilton-city.org/) have the higher elevation above sea level?
Choices:
Columbus
Hamilton
Franklin
Boulder
Lansing
Waukegan
New Haven
Oakland
Compton
San Bernardino
Program:
function: Find
inputs: San Bernardino
function: Find
inputs: Hamilton
function: FilterStr
dependencies: 1
inputs: official website
http://www.hamilton-city.org/
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Bernardino" . } UNION { ?e <pred:name> "Hamilton" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.hamilton-city.org/" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: San Bernardino