Question: Santa Clara or Davis(whose official website is http://cityofdavis.org/), which of these cities is at a lower altitude?
Choices:
Oakland
Columbus
New Haven
Compton
Greenville
Santa Clara
Franklin
Davis
Boulder
Waukegan
Program:
function: Find
inputs: Santa Clara
function: Find
inputs: Davis
function: FilterStr
dependencies: 1
inputs: official website
http://cityofdavis.org/
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Santa Clara" . } UNION { ?e <pred:name> "Davis" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://cityofdavis.org/" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Davis