Question: Which has fewer people, Haryana (the one whose inception time is 1966-11-01) or Uttarakhand (the one whose FIPS 10-4 (countries and regions) is IN39)?
Choices:
Haryana
Andhra Pradesh
Uttarakhand
West Bengal
Kerala
Himachal Pradesh
Odisha
Maharashtra
Karnataka
Jharkhand
Program:
function: Find
inputs: Haryana
function: FilterDate
dependencies: 0
inputs: inception
1966-11-01
=
function: Find
inputs: Uttarakhand
function: FilterStr
dependencies: 2
inputs: FIPS 10-4 (countries and regions)
IN39
function: SelectBetween
dependencies: 1
3
inputs: rural population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Haryana" . ?e <inception> ?pv_1 . ?pv_1 <pred:date> "1966-11-01"^^xsd:date . } UNION { ?e <pred:name> "Uttarakhand" . ?e <FIPS_10-4_(countries_and_regions)> ?pv_2 . ?pv_2 <pred:value> "IN39" . } ?e <rural_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Uttarakhand