Question: Tell me the one with the least area within the New Jersey city that you can find in Union City (the one sharing a border with Morris County).
Choices:
Elizabeth
Hoboken
East Orange
Trenton
Paterson
Atlantic City
Bayonne
Jersey City
Passaic
Plainfield
Program:
function: Find
inputs: Morris County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Union County
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: city in New Jersey
function: SelectAmong
dependencies: 5
inputs: area
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city in New Jersey" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Union County" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Morris County" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Plainfield