Question: Which one has more of an urban population, Uttarakhand, (which has the Indian census area code (2001) is 05) or Haryana (which has a female population of 11856728)
Choices:
Himachal Pradesh
Andhra Pradesh
Maharashtra
Odisha
Jharkhand
Karnataka
Punjab
West Bengal
Uttarakhand
Haryana
Answer: Haryana
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Uttarakhand" . ?e <Indian_census_area_code_(2001)> ?pv_1 . ?pv_1 <pred:value> "05" . } UNION { ?e <pred:name> "Haryana" . ?e <female_population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "11856728"^^xsd:double . } ?e <urban_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Uttarakhand
function: FilterStr
dependencies: 0
inputs: Indian census area code (2001)
05
function: Find
inputs: Haryana
function: FilterNum
dependencies: 2
inputs: female population
11856728
=
function: SelectBetween
dependencies: 1
3
inputs: urban population
greater