Question: Are there fewer rural dwellers in Chhattisgarh, with Indian census area code (2001) 22, or in Jammu and Kashmir?
Choices:
Odisha
Jammu and Kashmir
Karnataka
Himachal Pradesh
Jharkhand
Kerala
Maharashtra
Punjab
Chhattisgarh
Haryana
Program:
function: Find
inputs: Chhattisgarh
function: FilterStr
dependencies: 0
inputs: Indian census area code (2001)
22
function: Find
inputs: Jammu and Kashmir
function: SelectBetween
dependencies: 1
2
inputs: rural population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chhattisgarh" . ?e <Indian_census_area_code_(2001)> ?pv_1 . ?pv_1 <pred:value> "22" . } UNION { ?e <pred:name> "Jammu and Kashmir" . } ?e <rural_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jammu and Kashmir