Question: Which has more speakers, Cherokee which has a ISO 639-3 code of chr, or Punjabi?
Choices:
Welsh
Punjabi
German
Scots
Romanian
Tamil
Gujarati
Cherokee
Indonesian
Irish
Program:
function: Find
inputs: Punjabi
function: Find
inputs: Cherokee
function: FilterStr
dependencies: 1
inputs: ISO 639-3 code
chr
function: SelectBetween
dependencies: 0
2
inputs: number of speakers
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Punjabi" . } UNION { ?e <pred:name> "Cherokee" . ?e <ISO_639-3_code> ?pv_1 . ?pv_1 <pred:value> "chr" . } ?e <number_of_speakers> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Punjabi