Question: Does Bahrain or Poland have greater majority age ?
Choices:
Benin
Kiribati
Cambodia
Poland
Russian Soviet Federative Socialist Republic
South Sudan
Bahrain
Weimar Republic
Switzerland
Socialist Federal Republic of Yugoslavia
Program:
function: Find
inputs: Bahrain
function: Find
inputs: Poland
function: SelectBetween
dependencies: 0
1
inputs: age of majority
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bahrain" .  } UNION { ?e <pred:name> "Poland" .  } ?e <age_of_majority> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bahrain