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