Question: Which area has a smaller population, Salzburg (the one whose ISO 3166-2 code is AT-5) or Carinthia?
Choices:
Greater Poland Voivodeship
Lublin Voivodeship
Podlaskie Voivodeship
Punjab
England
Upper Austria
New South Wales
Minas Gerais
Salzburg
Carinthia
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> "Carinthia" . } ?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: Carinthia
function: SelectBetween
dependencies: 1
2
inputs: population
less