Question: Which one of the Indian states that share border with Jammu and Kahsmir, has the smallest female population?
Choices: Jharkhand
Odisha
Maharashtra
Andhra Pradesh
Kerala
Himachal Pradesh
Punjab
Karnataka
West Bengal
Gujarat
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Jammu and Kashmir" .  ?e <female_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Jammu and Kashmir
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: state of India
function: SelectAmong
dependencies: 2
inputs: female population
smallest
Answer: Himachal Pradesh