Question: Which one of human settlements, bordering Verona (the one bordering West Orange), has the lowest population ?
Choices: Wexford
Princeton
West Orange
Whanganui
Ridgewood
Livingston
Montclair
North Hollywood
Belleville
Red Bank
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human settlement" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Verona" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "West Orange" .  ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: West Orange
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Verona
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: human settlement
function: SelectAmong
dependencies: 5
inputs: population
smallest
Answer: Montclair