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