Question: Which one has a smaller population, Xinjiang or Salzburg (which has an ISO 3166-2 code of AT-5)
Choices:
Greater Poland Voivodeship
Minas Gerais
New South Wales
Lublin Voivodeship
England
Podlaskie Voivodeship
Salzburg
Xinjiang
Chiapas
Punjab
Answer: Salzburg
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Salzburg" . ?e <ISO_3166-2_code> ?pv_1 . ?pv_1 <pred:value> "AT-5" . } UNION { ?e <pred:name> "Xinjiang" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Salzburg
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
AT-5
function: Find
inputs: Xinjiang
function: SelectBetween
dependencies: 1
2
inputs: population
less