Question: Which has less urban population, Chhattisgarh whose area is 135194 square kilometers or Odisha whose ISO 3166-2 code is IN-OR?
Choices:
Chhattisgarh
Karnataka
Jharkhand
Punjab
Odisha
Himachal Pradesh
Haryana
Kerala
Maharashtra
Andhra Pradesh
Answer: Chhattisgarh
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chhattisgarh" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "135194"^^xsd:double . } UNION { ?e <pred:name> "Odisha" . ?e <ISO_3166-2_code> ?pv_2 . ?pv_2 <pred:value> "IN-OR" . } ?e <urban_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Chhattisgarh
function: FilterNum
dependencies: 0
inputs: area
135194 square kilometre
=
function: Find
inputs: Odisha
function: FilterStr
dependencies: 2
inputs: ISO 3166-2 code
IN-OR
function: SelectBetween
dependencies: 1
3
inputs: urban population
less