Question: Which area is larger, Maharashtra (the one whose subreddit is Maharashtra) or Arunachal Pradesh (the one whose area is 83743 square kilometre)?
Choices:
Jharkhand
Odisha
Arunachal Pradesh
Kerala
Andhra Pradesh
West Bengal
Haryana
Himachal Pradesh
Maharashtra
Punjab
Answer: Maharashtra
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Maharashtra" . ?e <subreddit> ?pv_1 . ?pv_1 <pred:value> "Maharashtra" . } UNION { ?e <pred:name> "Arunachal Pradesh" . ?e <area> ?pv_2 . ?pv_2 <pred:unit> "square kilometre" . ?pv_2 <pred:value> "83743"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Maharashtra
function: FilterStr
dependencies: 0
inputs: subreddit
Maharashtra
function: Find
inputs: Arunachal Pradesh
function: FilterNum
dependencies: 2
inputs: area
83743 square kilometre
=
function: SelectBetween
dependencies: 1
3
inputs: area
greater