Question: Is the smaller area occupied by Suffolk County, population 735607, or Plymouth County, which borders Barnstable County?
Choices:
Norfolk County
Essex County
Plymouth County
Worcester County
Barnstable County
Suffolk County
Franklin County
Bristol County
Middlesex County
Berkshire County
Answer: Suffolk County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Suffolk County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "735607"^^xsd:double . } UNION { ?e <pred:name> "Plymouth County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Barnstable County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Suffolk County
function: FilterNum
dependencies: 0
inputs: population
735607
=
function: Find
inputs: Barnstable County
function: Relate
dependencies: 2
inputs: shares border with
forward
function: Find
inputs: Plymouth County
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
less