Question: Among all the states that have Hindi as their official language ,which one has the highest male population
Choices:
Chhattisgarh
Odisha
Rajasthan
Haryana
Andhra Pradesh
Jharkhand
Kerala
Karnataka
Himachal Pradesh
Uttar Pradesh
Program:
function: Find
inputs: Hindi
function: Relate
dependencies: 0
inputs: official language
backward
function: FilterConcept
dependencies: 1
inputs: state of India
function: SelectAmong
dependencies: 2
inputs: male population
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e <official_language> ?e_1 . ?e_1 <pred:name> "Hindi" .  ?e <male_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Uttar Pradesh