Question: Among the states of India that share a border with Andhra Pradesh (whose area is 275068 square kilometres), which has the smallest female population?
Choices:
Andhra Pradesh
Karnataka
Maharashtra
Himachal Pradesh
Kerala
Haryana
Jharkhand
Tamil Nadu
Chhattisgarh
Punjab
Answer: Chhattisgarh
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> "Andhra Pradesh" . ?e_1 <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "275068"^^xsd:double . ?e <female_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Andhra Pradesh
function: FilterNum
dependencies: 0
inputs: area
275068 square kilometre
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: state of India
function: SelectAmong
dependencies: 3
inputs: female population
smallest