Question: Tell me the one with the smallest area within the New Jersey city that has a border with Elizabeth (the one with zip code 07206)
Choices:
Bayonne
Hoboken
Perth Amboy
East Orange
Jersey City
Plainfield
Elizabeth
Newark
Paterson
Passaic
Program:
function: Find
inputs: Elizabeth
function: FilterStr
dependencies: 0
inputs: postal code
07206
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: city in New Jersey
function: SelectAmong
dependencies: 3
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city in New Jersey" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Elizabeth" . ?e_1 <postal_code> ?pv_1 . ?pv_1 <pred:value> "07206" . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Newark