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