Question: Which human settlement (whose local dialing code is 973) has the smallest population?
Choices:
Wexford
Verona
Red Bank
Belleville
Princeton
West Orange
North Hollywood
Montclair
Livingston
Whanganui
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: local dialing code
973
function: FilterConcept
dependencies: 1
inputs: human settlement
function: SelectAmong
dependencies: 2
inputs: population
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human settlement" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "973" . ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Livingston