Question: Which area is larger, Uttarakhand (the one that is the birthplace of Shriya Saran) or Jharkhand (the one whose subreddit is johar)?
Choices:
Andhra Pradesh
Himachal Pradesh
Odisha
Haryana
Kerala
Punjab
Karnataka
Jharkhand
West Bengal
Uttarakhand
Program:
function: Find
inputs: Shriya Saran
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Uttarakhand
function: And
dependencies: 1
2
function: Find
inputs: Jharkhand
function: FilterStr
dependencies: 4
inputs: subreddit
johar
function: SelectBetween
dependencies: 3
5
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Uttarakhand" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Shriya Saran" . } UNION { ?e <pred:name> "Jharkhand" . ?e <subreddit> ?pv_1 . ?pv_1 <pred:value> "johar" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Jharkhand