Question: Among the Massachusetts counties that are an administrative division of Massachusetts (whose nickname is The Bay State), which has the largest area?
Choices:
Essex County
Plymouth County
Worcester County
Suffolk County
Norfolk County
Franklin County
Hampshire County
Berkshire County
Middlesex County
Barnstable County
Program:
function: Find
inputs: Massachusetts
function: FilterStr
dependencies: 0
inputs: nickname
The Bay State
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: county of Massachusetts
function: SelectAmong
dependencies: 3
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Massachusetts" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Massachusetts" . ?e_1 <nickname> ?pv_1 . ?pv_1 <pred:value> "The Bay State" . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Barnstable County