Question: Is there a greater area in Union County (the one that shares border with New York City) or Passaic County?
Choices:
Burlington County
Gloucester County
Morris County
Passaic County
Essex County
Hudson County
Monmouth County
Union County
Bergen County
Cumberland County
Answer: Passaic County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Union County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "New York City" .   } UNION { ?e <pred:name> "Passaic County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Union County
function: And
dependencies: 1
2
function: Find
inputs: Passaic County
function: SelectBetween
dependencies: 3
4
inputs: area
greater