Question: Which has higher elevation above sea level, Joplin or Danville (the one whose local dialing code is 859)?
Choices:
Greenville
New Haven
Franklin
Boulder
Waukegan
Columbus
Danville
Oakland
Compton
Joplin
Answer: Joplin
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Joplin" . } UNION { ?e <pred:name> "Danville" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "859" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Joplin
function: Find
inputs: Danville
function: FilterStr
dependencies: 1
inputs: local dialing code
859
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater