Question: Is the elevation relative to sea level lower for Jammu and Kashmir or for Himachal Pradesh (male population 3481873)?
Choices:
Jharkhand
Karnataka
Maharashtra
Jammu and Kashmir
Kerala
Punjab
Haryana
West Bengal
Himachal Pradesh
Andhra Pradesh
Program:
function: Find
inputs: Jammu and Kashmir
function: Find
inputs: Himachal Pradesh
function: FilterNum
dependencies: 1
inputs: male population
3481873
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jammu and Kashmir" . } UNION { ?e <pred:name> "Himachal Pradesh" . ?e <male_population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3481873"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jammu and Kashmir