Question: For the first-level administrative counties of Malaysia, which has the largest population?
Choices:
Podlaskie Voivodeship
Selangor
Upper Austria
Lublin Voivodeship
England
Melaka
Johor
Perak
Sabah
Penang
Program:
function: Find
inputs: Malaysia
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: first-level administrative country subdivision
function: SelectAmong
dependencies: 2
inputs: population
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "first-level administrative country subdivision" . ?e <country> ?e_1 . ?e_1 <pred:name> "Malaysia" .  ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Selangor