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