Question: Which one has fewer people living in rural areas, Jharkhand (total population of 32,988,134) or Maharashtra (rural population of 61,556,074) ?
Choices:
Andhra Pradesh
West Bengal
Jharkhand
Gujarat
Haryana
Karnataka
Kerala
Punjab
Himachal Pradesh
Odisha
Program:
function: Find
inputs: Jharkhand
function: FilterNum
dependencies: 0
inputs: population
32988134
=
function: Find
inputs: Maharashtra
function: FilterNum
dependencies: 2
inputs: rural population
61556074
=
function: SelectBetween
dependencies: 1
3
inputs: rural population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jharkhand" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "32988134"^^xsd:double . } UNION { ?e <pred:name> "Maharashtra" . ?e <rural_population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "61556074"^^xsd:double . } ?e <rural_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jharkhand