Question: Among the states of India which shares border with Chhattisgarh (the one whose male population is 12832895), which has the largest area ?
Choices:
Karnataka
West Bengal
Kerala
Maharashtra
Jharkhand
Andhra Pradesh
Himachal Pradesh
Punjab
Odisha
Uttar Pradesh
Answer: Maharashtra
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> "Chhattisgarh" . ?e_1 <male_population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "12832895"^^xsd:double . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Chhattisgarh
function: FilterNum
dependencies: 0
inputs: male population
12832895
=
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: state of India
function: SelectAmong
dependencies: 3
inputs: area
largest