What is the {republic} with the {MAX(retirement age)} ?
Which Republic has the highest age of retirement?
Which republic has the highest retirement age?
SELECT ?p WHERE { ?p property:retirement_age ?n . ?p rdf:type ontology:republic }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q7270>.
?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/P3001>.
?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:Q7270 . ?ent wdt:P3001 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Czech Republic Latvia France Colombia Namibia