Question: Which one has more people living in the rural areas, Uttarakhand (the one whose male population is 5137773) or Gujarat (the one whose official website is http://www.gujaratindia.com/)    ?
Choices:
Himachal Pradesh
Andhra Pradesh
Jharkhand
Karnataka
Uttarakhand
Punjab
Gujarat
Kerala
Odisha
Haryana
Program:
function: Find
inputs: Uttarakhand
function: FilterNum
dependencies: 0
inputs: male population
5137773
=
function: Find
inputs: Gujarat
function: FilterStr
dependencies: 2
inputs: official website
http://www.gujaratindia.com/
function: SelectBetween
dependencies: 1
3
inputs: rural population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Uttarakhand" . ?e <male_population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "5137773"^^xsd:double . } UNION { ?e <pred:name> "Gujarat" . ?e <official_website> ?pv_2 . ?pv_2 <pred:value> "http://www.gujaratindia.com/" . } ?e <rural_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Gujarat