Question: Does Mercer County in New Jersey or the Somerset County that borders Morris County occupy the larger space?
Choices:
Hudson County
Bergen County
Gloucester County
Morris County
Cumberland County
Monmouth County
Burlington County
Somerset County
Hunterdon County
Mercer County
Answer: Somerset County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mercer County" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "New Jersey" .   } UNION { ?e <pred:name> "Somerset County" . ?e <shares_border_with> ?e_2 . ?e_2 <pred:name> "Morris County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: New Jersey
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Mercer County
function: And
dependencies: 1
2
function: Find
inputs: Morris County
function: Relate
dependencies: 4
inputs: shares border with
backward
function: Find
inputs: Somerset County
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
greater