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