Question: Which has a smaller female population, Bihar or Goa (the one whose Indian census area code (2001) is 30)?
Choices:
Haryana
Bihar
Andhra Pradesh
Punjab
Jharkhand
Odisha
Kerala
Karnataka
Goa
Himachal Pradesh
Program:
function: Find
inputs: Bihar
function: Find
inputs: Goa
function: FilterStr
dependencies: 1
inputs: Indian census area code (2001)
30
function: SelectBetween
dependencies: 0
2
inputs: female population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bihar" . } UNION { ?e <pred:name> "Goa" . ?e <Indian_census_area_code_(2001)> ?pv_1 . ?pv_1 <pred:value> "30" . } ?e <female_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Goa