Question: Which area is the smallest among the county of New Jersey that shares border with Mercer County (the one that contains Trenton)?
Choices:
Passaic County
Gloucester County
Hunterdon County
Cumberland County
Monmouth County
Middlesex County
Burlington County
Somerset County
Bergen County
Morris County
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
forward
function: FilterConcept
dependencies: 4
inputs: county of New Jersey
function: SelectAmong
dependencies: 5
inputs: area
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New Jersey" . ?e_1 <shares_border_with> ?e . ?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 ?v LIMIT 1
Answer: Somerset County