Question: Which one, West Bengal (the one whose urban population is 22427251) or Assam (the one whose area is 78438 square kilometre), has greater area?
Choices:
Maharashtra
Odisha
Himachal Pradesh
Andhra Pradesh
West Bengal
Punjab
Haryana
Assam
Karnataka
Jharkhand
Answer: West Bengal
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "West Bengal" . ?e <urban_population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "22427251"^^xsd:double . } UNION { ?e <pred:name> "Assam" . ?e <area> ?pv_2 . ?pv_2 <pred:unit> "square kilometre" . ?pv_2 <pred:value> "78438"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: West Bengal
function: FilterNum
dependencies: 0
inputs: urban population
22427251
=
function: Find
inputs: Assam
function: FilterNum
dependencies: 2
inputs: area
78438 square kilometre
=
function: SelectBetween
dependencies: 1
3
inputs: area
greater