Question: Which has the smallest area, Mount Vernon with the local dialing code of 360 or Danbury?
Choices:
Boulder
Columbus
Danbury
Mount Vernon
Greenville
Compton
New Haven
Lansing
Franklin
Waukegan
Program:
function: Find
inputs: Mount Vernon
function: FilterStr
dependencies: 0
inputs: local dialing code
360
function: Find
inputs: Danbury
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mount Vernon" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "360" . } UNION { ?e <pred:name> "Danbury" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mount Vernon