What is the {country} with the {MAX(age of candidacy)} ?
What is the nation with a highest candidacy age?
Which country has maximum age of candidacy?
SELECT ?l WHERE { ?l rdf:type ontology:country . ?l property:age_of_candidacy ?e }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q6256>.
?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/P2998>.
?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:Q6256 . ?ent wdt:P2998 ?obj } ORDER BY DESC(?obj)LIMIT 5 
South Korea South Korea Israel Australia