Question: Which has the most area among the Massachusetts counties that border Plymouth County which contains the administrative division Brockton?
Choices:
Franklin County
Bristol County
Suffolk County
Berkshire County
Middlesex County
Worcester County
Barnstable County
Plymouth County
Hampshire County
Norfolk County
Program:
function: Find
inputs: Brockton
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: Find
inputs: Plymouth County
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: county of Massachusetts
function: SelectAmong
dependencies: 5
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Massachusetts" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Plymouth County" . ?e_1 <contains_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Brockton" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Barnstable County