Question: Which New Jersey city whose country is the United States of America has the smallest land area?
Choices:
Atlantic City
Newark
Hoboken
Camden
Jersey City
Plainfield
Trenton
New Brunswick
Paterson
Elizabeth
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: city in New Jersey
function: SelectAmong
dependencies: 2
inputs: area
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city in New Jersey" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hoboken