Question: Which is physically larger: Salem (zip codes 97301–97312) or Decatur (local dialing code 256)?
Choices:
Greenville
Waukegan
Franklin
Salem
Decatur
Columbus
Oakland
Boulder
Compton
Lansing
Program:
function: Find
inputs: Salem
function: FilterStr
dependencies: 0
inputs: postal code
97301–97312
function: Find
inputs: Decatur
function: FilterStr
dependencies: 2
inputs: local dialing code
256
function: SelectBetween
dependencies: 1
3
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Salem" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "97301–97312" . } UNION { ?e <pred:name> "Decatur" . ?e <local_dialing_code> ?pv_2 . ?pv_2 <pred:value> "256" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Decatur