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