Question: Does San Mateo or Brunswick with local dialing code 912 have the less area?
Choices:
Boulder
Lansing
Waukegan
Brunswick
Franklin
Compton
Greenville
Columbus
San Mateo
New Haven
Program:
function: Find
inputs: San Mateo
function: Find
inputs: Brunswick
function: FilterStr
dependencies: 1
inputs: local dialing code
912
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Mateo" . } UNION { ?e <pred:name> "Brunswick" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "912" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: San Mateo