Question: Which has the smallest area among the New Jersey cities that border Elizabeth that borders Bayonne?
Choices: Bayonne
Newark
Plainfield
Perth Amboy
Paterson
Passaic
Jersey City
Hoboken
East Orange
Atlantic City
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city in New Jersey" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Elizabeth" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Bayonne" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Bayonne
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Elizabeth
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: city in New Jersey
function: SelectAmong
dependencies: 5
inputs: area
smallest
Answer: Bayonne