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