Question: Which has a larger female population, Bihar or Uttarakhand (the one whose Dewey Decimal Classification is 2--5451)?
Choices: Haryana
Punjab
Kerala
Jharkhand
Maharashtra
Odisha
Himachal Pradesh
Bihar
Andhra Pradesh
Uttarakhand
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bihar" . } UNION { ?e <pred:name> "Uttarakhand" . ?e <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--5451" . } ?e <female_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Bihar
function: Find
inputs: Uttarakhand
function: FilterStr
dependencies: 1
inputs: Dewey Decimal Classification
2--5451
function: SelectBetween
dependencies: 0
2
inputs: female population
greater
Answer: Bihar