Question: Which one is the smallest by area among Massachusetts county that borders Middlesex County of 1,521,500 people?
Choices:
Middlesex County
Essex County
Hampshire County
Suffolk County
Barnstable County
Bristol County
Franklin County
Norfolk County
Plymouth County
Worcester County
Answer: Worcester County
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> "Middlesex County" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1521500"^^xsd:double . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Middlesex County
function: FilterNum
dependencies: 0
inputs: population
1521500
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: county of Massachusetts
function: SelectAmong
dependencies: 3
inputs: area
smallest