Question: Is the population greater for Kabul (the one whose FIPS 10-4 (countries and regions) is AF13) or Selangor?
Choices: Kabul
Chiapas
Minas Gerais
Punjab
Lublin Voivodeship
Greater Poland Voivodeship
Selangor
Upper Austria
Podlaskie Voivodeship
England
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kabul" . ?e <FIPS_10-4_(countries_and_regions)> ?pv_1 . ?pv_1 <pred:value> "AF13" . } UNION { ?e <pred:name> "Selangor" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Kabul
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
AF13
function: Find
inputs: Selangor
function: SelectBetween
dependencies: 1
2
inputs: population
greater
Answer: Selangor