Question: Are there more males living in Arunachal Pradesh, with 317,369 urban dwellers, or in Gujarat, which occupies 196,024 square km?
Choices:
Maharashtra
Kerala
Punjab
Himachal Pradesh
Arunachal Pradesh
Andhra Pradesh
Haryana
Gujarat
Jharkhand
Karnataka
Program:
function: Find
inputs: Arunachal Pradesh
function: FilterNum
dependencies: 0
inputs: urban population
317369
=
function: Find
inputs: Gujarat
function: FilterNum
dependencies: 2
inputs: area
196024 square kilometre
=
function: SelectBetween
dependencies: 1
3
inputs: male population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Arunachal Pradesh" . ?e <urban_population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "317369"^^xsd:double . } UNION { ?e <pred:name> "Gujarat" . ?e <area> ?pv_2 . ?pv_2 <pred:unit> "square kilometre" . ?pv_2 <pred:value> "196024"^^xsd:double . } ?e <male_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Gujarat