Question: Which has less area, Middlesex County founded in 1643 or Berkshire County?
Choices:
Norfolk County
Middlesex County
Suffolk County
Barnstable County
Bristol County
Hampshire County
Essex County
Worcester County
Franklin County
Plymouth County
Program:
function: Find
inputs: Middlesex County
function: FilterYear
dependencies: 0
inputs: inception
1643
=
function: Find
inputs: Berkshire County
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Middlesex County" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1643 . } UNION { ?e <pred:name> "Berkshire County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Middlesex County