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