Question: Which area is smaller, Passaic County or Middlesex County (the one that shares border with Monmouth County)?
Choices:
Morris County
Hunterdon County
Bergen County
Burlington County
Middlesex County
Essex County
Gloucester County
Cumberland County
Passaic County
Monmouth County
Answer: Passaic County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Passaic 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 ?v LIMIT 1
Program:
function: Find
inputs: Passaic 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
less