Question: Does Manipur (whose 2001 Indian census area code is 14) or Arunachal Pradesh (whose rural population is 1066358) have the larger female population?
Choices:
Himachal Pradesh
Maharashtra
Arunachal Pradesh
Kerala
Manipur
Punjab
Karnataka
Andhra Pradesh
Jharkhand
Odisha
Program:
function: Find
inputs: Manipur
function: FilterStr
dependencies: 0
inputs: Indian census area code (2001)
14
function: Find
inputs: Arunachal Pradesh
function: FilterNum
dependencies: 2
inputs: rural population
1066358
=
function: SelectBetween
dependencies: 1
3
inputs: female population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Manipur" . ?e <Indian_census_area_code_(2001)> ?pv_1 . ?pv_1 <pred:value> "14" . } UNION { ?e <pred:name> "Arunachal Pradesh" . ?e <rural_population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "1066358"^^xsd:double . } ?e <female_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Manipur