Question: Does Perak or KwaZulu-Natal have the smaller population?
Choices:
Upper Austria
Greater Poland Voivodeship
England
KwaZulu-Natal
Punjab
Chiapas
New South Wales
Minas Gerais
Perak
Podlaskie Voivodeship
Program:
function: Find
inputs: Perak
function: Find
inputs: KwaZulu-Natal
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Perak" .  } UNION { ?e <pred:name> "KwaZulu-Natal" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Perak