Question: Which language in Serbia has the most speakers?
Choices:
Bulgarian
Tamil
Gujarati
German
Serbian
Indonesian
Irish
Romanian
Croatian
Ukrainian
Program:
function: Find
inputs: Serbia
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: language
function: SelectAmong
dependencies: 2
inputs: number of speakers
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "language" . ?e <country> ?e_1 . ?e_1 <pred:name> "Serbia" .  ?e <number_of_speakers> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ukrainian