Question: Of Indian states bordering Karnataka, which has the fewest urban dwellers?
Choices:
Tamil Nadu
Karnataka
Haryana
Kerala
Himachal Pradesh
Jharkhand
Maharashtra
Andhra Pradesh
Goa
Odisha
Program:
function: Find
inputs: Karnataka
function: Relate
dependencies: 0
inputs: shares border with
forward
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_1 <shares_border_with> ?e . ?e_1 <pred:name> "Karnataka" .  ?e <urban_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Goa