Question: Which one of Indian states, with the terrain feature of Jainism, has the largest female population ?
Choices:
Gujarat
Uttar Pradesh
Rajasthan
Haryana
Himachal Pradesh
Maharashtra
Karnataka
Kerala
Jharkhand
Tamil Nadu
Program:
function: Find
inputs: Jainism
function: Relate
dependencies: 0
inputs: located on terrain feature
forward
function: FilterConcept
dependencies: 1
inputs: state of India
function: SelectAmong
dependencies: 2
inputs: female population
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e_1 <located_on_terrain_feature> ?e . ?e_1 <pred:name> "Jainism" .  ?e <female_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Uttar Pradesh