Question: Tell me the one with a smaller area, San Bernardino or Anderson (the one with a local dialing code of 864)
Choices:
Waukegan
Compton
Boulder
Lansing
San Bernardino
Anderson
Franklin
Oakland
Columbus
Greenville
Program:
function: Find
inputs: San Bernardino
function: Find
inputs: Anderson
function: FilterStr
dependencies: 1
inputs: local dialing code
864
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Bernardino" . } UNION { ?e <pred:name> "Anderson" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "864" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Anderson