Question: Which area is smaller, Fort Wayne or Fontana (the one whose postal code is 92331, 92334–92337)?
Choices:
Lansing
Fort Wayne
New Haven
Compton
Fontana
Columbus
Waukegan
Greenville
Boulder
Oakland
Program:
function: Find
inputs: Fort Wayne
function: Find
inputs: Fontana
function: FilterStr
dependencies: 1
inputs: postal code
92331, 92334–92337
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fort Wayne" . } UNION { ?e <pred:name> "Fontana" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "92331, 92334–92337" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Fontana