Question: Which Indian state with Chandigarh as its capital has the fewest urban dwellers?
Choices:
Kerala
Himachal Pradesh
Odisha
West Bengal
Jharkhand
Punjab
Karnataka
Gujarat
Andhra Pradesh
Haryana
Program:
function: Find
inputs: Chandigarh
function: Relate
dependencies: 0
inputs: capital
backward
function: FilterConcept
dependencies: 1
inputs: state of India
function: SelectAmong
dependencies: 2
inputs: urban population
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Chandigarh" .  ?e <urban_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Haryana