Question: Is the larger area occupied by Hunterdon County or by Somerset County that borders Hunterdon County?
Choices:
Hunterdon County
Somerset County
Burlington County
Monmouth County
Passaic County
Bergen County
Morris County
Gloucester County
Hudson County
Essex County
Answer: Hunterdon County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hunterdon County" .  } UNION { ?e <pred:name> "Somerset County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Hunterdon County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hunterdon County
function: Find
inputs: Hunterdon County
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Somerset County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater