Question: Among the states of India that shares border with Punjab (the one whose Dewey Decimal Classification is 2--54552), which one has the smallest male population ?
Choices:
Rajasthan
Punjab
Jharkhand
Maharashtra
Andhra Pradesh
Jammu and Kashmir
Haryana
Odisha
Himachal Pradesh
Kerala
Answer: Himachal Pradesh
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 <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--54552" . ?e <male_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Punjab
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--54552
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: state of India
function: SelectAmong
dependencies: 3
inputs: male population
smallest