Question: Which area is smaller, Bristol County (which contains New Bedford) or Hampden County?
Choices:
Berkshire County
Franklin County
Bristol County
Hampshire County
Barnstable County
Plymouth County
Worcester County
Hampden County
Essex County
Norfolk County
Program:
function: Find
inputs: Hampden County
function: Find
inputs: New Bedford
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Bristol County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hampden County" .  } UNION { ?e <pred:name> "Bristol County" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "New Bedford" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hampden County