Question: Are there less speakers of Dutch (the one that is the official language of Dutch Republic) or Sinhala?
Choices:
German
Croatian
Irish
Welsh
Dutch
Romanian
Sinhala
Scots
Indonesian
Gujarati
Program:
function: Find
inputs: Dutch Republic
function: Relate
dependencies: 0
inputs: official language
forward
function: Find
inputs: Dutch
function: And
dependencies: 1
2
function: Find
inputs: Sinhala
function: SelectBetween
dependencies: 3
4
inputs: number of speakers
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dutch" . ?e_1 <official_language> ?e . ?e_1 <pred:name> "Dutch Republic" .   } UNION { ?e <pred:name> "Sinhala" .  } ?e <number_of_speakers> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Sinhala