Question: Among the counties of New Jersey that shares border with Mercer County (the one that contains Trenton),which one has the largest area ?
Choices:
Cumberland County
Hunterdon County
Morris County
Somerset County
Monmouth County
Middlesex County
Gloucester County
Hudson County
Burlington County
Bergen County
Answer: Burlington County
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New Jersey" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Mercer County" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Trenton" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Trenton
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Mercer County
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: county of New Jersey
function: SelectAmong
dependencies: 5
inputs: area
largest