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