Question: Is the male population greater for Haryana, whose ISO 3166-2 code is IN-HR, or Himachal Pradesh, the one whose population is 6864602?
Choices:
Punjab
Jharkhand
Kerala
Haryana
Himachal Pradesh
Gujarat
West Bengal
Karnataka
Maharashtra
Odisha
Answer: Haryana
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Haryana" . ?e <ISO_3166-2_code> ?pv_1 . ?pv_1 <pred:value> "IN-HR" . } UNION { ?e <pred:name> "Himachal Pradesh" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "6864602"^^xsd:double . } ?e <male_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Haryana
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
IN-HR
function: Find
inputs: Himachal Pradesh
function: FilterNum
dependencies: 2
inputs: population
6864602
=
function: SelectBetween
dependencies: 1
3
inputs: male population
greater