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