Question: Is Fayetteville, with telephone area code 910, or Sioux City at the higher elevation relative to sea level?
Choices:
Lansing
Compton
Columbus
Greenville
Sioux City
Franklin
Waukegan
Boulder
Fayetteville
Oakland
Answer: Sioux City
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fayetteville" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "910" . } UNION { ?e <pred:name> "Sioux City" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Fayetteville
function: FilterStr
dependencies: 0
inputs: local dialing code
910
function: Find
inputs: Sioux City
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater