Question: Which has more speakers, Vietnamese or Ukrainian?
Choices:
Irish
Vietnamese
German
Indonesian
Romanian
Ukrainian
Gujarati
Croatian
Welsh
Tamil
Program:
function: Find
inputs: Vietnamese
function: Find
inputs: Ukrainian
function: SelectBetween
dependencies: 0
1
inputs: number of speakers
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Vietnamese" .  } UNION { ?e <pred:name> "Ukrainian" .  } ?e <number_of_speakers> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Vietnamese