Question: Which has a smaller population, Jharkhand, with an urban population of 7933061, or Odisha, with the capital Bhubaneswar?
Choices:
Andhra Pradesh
Odisha
Karnataka
Haryana
Maharashtra
Kerala
Jharkhand
West Bengal
Himachal Pradesh
Gujarat
Program:
function: Find
inputs: Jharkhand
function: FilterNum
dependencies: 0
inputs: urban population
7933061
=
function: Find
inputs: Bhubaneswar
function: Relate
dependencies: 2
inputs: capital of
forward
function: Find
inputs: Odisha
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: rural population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jharkhand" . ?e <urban_population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "7933061"^^xsd:double . } UNION { ?e <pred:name> "Odisha" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Bhubaneswar" . } ?e <rural_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jharkhand