Question: Which has the smallest area among the Massachusetts counties that  border Essex County whose FIPS 6-4 (US counties) is 25009?
Choices:
Norfolk County
Middlesex County
Worcester County
Essex County
Barnstable County
Hampshire County
Berkshire County
Plymouth County
Suffolk County
Franklin County
Answer: Suffolk County
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Massachusetts" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Essex County" . ?e_1 <FIPS_6-4_(US_counties)> ?pv_1 . ?pv_1 <pred:value> "25009" . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Essex County
function: FilterStr
dependencies: 0
inputs: FIPS 6-4 (US counties)
25009
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: county of Massachusetts
function: SelectAmong
dependencies: 3
inputs: area
smallest