Question: Is the number of female inhabitants lower in Uttar Pradesh, population 199581477, or Chhattisgarh (ISO 3166-2 code IN-CT)?
Choices:
Punjab
Karnataka
Andhra Pradesh
Chhattisgarh
Kerala
Jharkhand
Odisha
Haryana
Uttar Pradesh
Maharashtra
Program:
function: Find
inputs: Uttar Pradesh
function: FilterNum
dependencies: 0
inputs: population
199581477
=
function: Find
inputs: Chhattisgarh
function: FilterStr
dependencies: 2
inputs: ISO 3166-2 code
IN-CT
function: SelectBetween
dependencies: 1
3
inputs: female population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Uttar Pradesh" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "199581477"^^xsd:double . } UNION { ?e <pred:name> "Chhattisgarh" . ?e <ISO_3166-2_code> ?pv_2 . ?pv_2 <pred:value> "IN-CT" . } ?e <female_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Chhattisgarh