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