Question: Which area is larger, Lafayette (the one whose local dialing code is 337) or Newburyport?
Choices:
Franklin
Compton
Greenville
Waukegan
New Haven
Boulder
Lafayette
Oakland
Newburyport
Lansing
Program:
function: Find
inputs: Lafayette
function: FilterStr
dependencies: 0
inputs: local dialing code
337
function: Find
inputs: Newburyport
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lafayette" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "337" . } UNION { ?e <pred:name> "Newburyport" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lafayette