Question: Is there less area in Himachal Pradesh (the one whose male population is 3481873) or Andhra Pradesh (the one whose official website is http://www.ap.gov.in)?
Choices:
Jharkhand
Gujarat
Kerala
Andhra Pradesh
Karnataka
West Bengal
Haryana
Odisha
Himachal Pradesh
Punjab
Program:
function: Find
inputs: Himachal Pradesh
function: FilterNum
dependencies: 0
inputs: male population
3481873
=
function: Find
inputs: Andhra Pradesh
function: FilterStr
dependencies: 2
inputs: official website
http://www.ap.gov.in
function: SelectBetween
dependencies: 1
3
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Himachal Pradesh" . ?e <male_population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3481873"^^xsd:double . } UNION { ?e <pred:name> "Andhra Pradesh" . ?e <official_website> ?pv_2 . ?pv_2 <pred:value> "http://www.ap.gov.in" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Himachal Pradesh