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