What is the {city} with the {MAX(compulsory education (maximum age))} ?
City with the highest age for compulsory education
Which city has maximum age of compulsory education?
SELECT ?j WHERE { ?j rdf:type ontology:city . ?j property:compulsory_education_(maximum_age) ?n }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q515>.
?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/P3271>.
?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:Q515 . ?ent wdt:P3271 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Hong Kong Singapore