Question: Is there a greater area in Bismarck (where the local dialing code is 701) or in Fullerton?
Choices:
New Haven
Compton
Fullerton
Franklin
Columbus
Oakland
Greenville
Boulder
Waukegan
Bismarck
Program:
function: Find
inputs: Bismarck
function: FilterStr
dependencies: 0
inputs: local dialing code
701
function: Find
inputs: Fullerton
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bismarck" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "701" . } UNION { ?e <pred:name> "Fullerton" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bismarck