Question: Which has higher elevation above sea level, Goa (the one whose area is 3702 square kilometre) or Jammu and Kashmir?
Choices:
Karnataka
Jammu and Kashmir
Himachal Pradesh
Andhra Pradesh
Punjab
Kerala
Goa
Haryana
Maharashtra
Odisha
Answer: Goa
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Goa" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "3702"^^xsd:double . } UNION { ?e <pred:name> "Jammu and Kashmir" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Goa
function: FilterNum
dependencies: 0
inputs: area
3702 square kilometre
=
function: Find
inputs: Jammu and Kashmir
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater