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