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