Question: What place has a higher majority age, Ivory Coast or Mauritania?
Choices:
Weimar Republic
Switzerland
Socialist Federal Republic of Yugoslavia
Russian Soviet Federative Socialist Republic
Samoa
Mauritania
Benin
Ivory Coast
Kiribati
South Sudan
Program:
function: Find
inputs: Ivory Coast
function: Find
inputs: Mauritania
function: SelectBetween
dependencies: 0
1
inputs: age of majority
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ivory Coast" .  } UNION { ?e <pred:name> "Mauritania" .  } ?e <age_of_majority> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ivory Coast