Question: Which area is larger in size, Cumberland County (the one that shares border with Atlantic County) or Mercer County (the one that contains the administrative division Princeton)?
Choices:
Hunterdon County
Morris County
Gloucester County
Essex County
Hudson County
Mercer County
Cumberland County
Bergen County
Monmouth County
Burlington County
Answer: Cumberland County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cumberland County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Atlantic County" .   } UNION { ?e <pred:name> "Mercer County" . ?e <contains_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Princeton" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Atlantic County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Cumberland County
function: And
dependencies: 1
2
function: Find
inputs: Princeton
function: Relate
dependencies: 4
inputs: contains administrative territorial entity
backward
function: Find
inputs: Mercer County
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
greater