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