Question: Which area is larger, Sabah or Western Cape?
Choices:
England
Greater Poland Voivodeship
Lublin Voivodeship
Minas Gerais
Chiapas
Upper Austria
Sabah
Podlaskie Voivodeship
Punjab
Western Cape
Program:
function: Find
inputs: Sabah
function: Find
inputs: Western Cape
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sabah" .  } UNION { ?e <pred:name> "Western Cape" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Western Cape