Question: Does Guyana have a smaller majority age population than Nepal or vice versa?
Choices:
Guyana
Nepal
Switzerland
Weimar Republic
Cambodia
Benin
Russian Soviet Federative Socialist Republic
Socialist Federal Republic of Yugoslavia
Kiribati
Samoa
Program:
function: Find
inputs: Guyana
function: Find
inputs: Nepal
function: SelectBetween
dependencies: 0
1
inputs: age of majority
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Guyana" .  } UNION { ?e <pred:name> "Nepal" .  } ?e <age_of_majority> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Nepal