Question: Which area is larger, Iran or Palau?
Choices:
Cambodia
Socialist Federal Republic of Yugoslavia
Samoa
Kiribati
Benin
Iran
South Sudan
Palau
Russian Soviet Federative Socialist Republic
Weimar Republic
Program:
function: Find
inputs: Iran
function: Find
inputs: Palau
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Iran" .  } UNION { ?e <pred:name> "Palau" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Iran