Question: Who has the larger number of females, Punjab whose 2001 census area code is 03, or Assam whose female population is 15266133?
Choices:
Jharkhand
Karnataka
Haryana
Maharashtra
West Bengal
Assam
Himachal Pradesh
Andhra Pradesh
Kerala
Punjab
Program:
function: Find
inputs: Punjab
function: FilterStr
dependencies: 0
inputs: Indian census area code (2001)
03
function: Find
inputs: Assam
function: FilterNum
dependencies: 2
inputs: female population
15266133
=
function: SelectBetween
dependencies: 1
3
inputs: female population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Punjab" . ?e <Indian_census_area_code_(2001)> ?pv_1 . ?pv_1 <pred:value> "03" . } UNION { ?e <pred:name> "Assam" . ?e <female_population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "15266133"^^xsd:double . } ?e <female_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Assam