Question: Is the smaller area occupied by Battle Creek (zip codes 49014-49018 and 49037) or Athens (zip code 30603)?
Choices:
Battle Creek
Lansing
New Haven
Oakland
Franklin
Greenville
Compton
Boulder
Athens
Columbus
Program:
function: Find
inputs: Battle Creek
function: FilterStr
dependencies: 0
inputs: postal code
49014-49018; 49037
function: Find
inputs: Athens
function: FilterStr
dependencies: 2
inputs: postal code
30603
function: SelectBetween
dependencies: 1
3
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Battle Creek" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "49014-49018; 49037" . } UNION { ?e <pred:name> "Athens" . ?e <postal_code> ?pv_2 . ?pv_2 <pred:value> "30603" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Battle Creek