Question: Among the state of India that shares border with Punjab (the one whose FIPS 10-4 (countries and regions) is IN23), which one has the smallest rural population ?
Choices:
Haryana
Karnataka
Jammu and Kashmir
Maharashtra
Himachal Pradesh
Odisha
Kerala
Rajasthan
Punjab
Jharkhand
Program:
function: Find
inputs: Punjab
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
IN23
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: state of India
function: SelectAmong
dependencies: 3
inputs: rural 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> "Punjab" . ?e_1 <FIPS_10-4_(countries_and_regions)> ?pv_1 . ?pv_1 <pred:value> "IN23" . ?e <rural_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Himachal Pradesh