Question: Among the county of Massachusetts that shares border with Suffolk County that has the capital Boston, Which has the largest area?
Choices: Franklin County
Worcester County
Bristol County
Berkshire County
Hampshire County
Norfolk County
Suffolk County
Middlesex County
Barnstable County
Plymouth 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> "Suffolk County" . ?e_2 <capital_of> ?e_1 . ?e_2 <pred:name> "Boston" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Boston
function: Relate
dependencies: 0
inputs: capital of
forward
function: Find
inputs: Suffolk County
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: county of Massachusetts
function: SelectAmong
dependencies: 5
inputs: area
largest
Answer: Middlesex County