Question: Which language whose country is Serbia has the lowest number of speakers?
Choices:
Scots
Irish
Tamil
Romanian
Croatian
Ukrainian
German
Gujarati
Bulgarian
Serbian
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
smallest
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 ?v LIMIT 1
Answer: Croatian