Question: Which has a greater majority age between Monaco and Moldova?
Choices:
Moldova
Monaco
Kazakhstan
Fiji
Kosovo
Finland
Tajikistan
Bulgaria
Lithuania
Cuba
Program:
function: Find
inputs: Monaco
function: Find
inputs: Moldova
function: SelectBetween
dependencies: 0
1
inputs: age of majority
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Monaco" .  } UNION { ?e <pred:name> "Moldova" .  } ?e <age_of_majority> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Monaco