Question: Which has fewer people, Selangor or Balochistan?
Choices:
Greater Poland Voivodeship
Punjab
England
Minas Gerais
Upper Austria
Balochistan
Selangor
New South Wales
Chiapas
Podlaskie Voivodeship
Program:
function: Find
inputs: Selangor
function: Find
inputs: Balochistan
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Selangor" .  } UNION { ?e <pred:name> "Balochistan" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Selangor