Question: Which one has more speakers, Dutch (the one whose country is Dutch) or Welsh
Choices:
Irish
Welsh
Indonesian
Marathi
Tamil
Scots
Romanian
Dutch
German
Gujarati
Program:
function: Find
inputs: Netherlands
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Dutch
function: And
dependencies: 1
2
function: Find
inputs: Welsh
function: SelectBetween
dependencies: 3
4
inputs: number of speakers
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dutch" . ?e <country> ?e_1 . ?e_1 <pred:name> "Netherlands" .   } UNION { ?e <pred:name> "Welsh" .  } ?e <number_of_speakers> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dutch