What is the {archipelagic state} with the {MAX(age of majority)} ?
What archipelagic state contains the age of majority that is the highest?
Which archipelagic state has the highest age of majority?
SELECT ?g WHERE { ?g rdf:type ontology:archipelagic_state . ?g property:age_of_majority ?h }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q13107770>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2997>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .}
ORDER BY DESC(?obj)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q13107770 . ?ent wdt:P2997 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Indonesia Philippines Fiji The Bahamas Philippines