Question: Which area is larger, Cape May County or Sussex County (the one that is an administrative division of New Jersey)?
Choices:
Cape May County
Bergen County
Hunterdon County
Morris County
Passaic County
Burlington County
Sussex County
Cumberland County
Hudson County
Gloucester County
Program:
function: Find
inputs: Cape May County
function: Find
inputs: New Jersey
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
forward
function: Find
inputs: Sussex County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cape May County" .  } UNION { ?e <pred:name> "Sussex County" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "New Jersey" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Cape May County