What is the {locality} with the {MAX(male population)} ?
Locality with the largest male population
Which locality has the largest male population?
SELECT ?k WHERE { ?k property:male_population ?y . ?k rdf:type ontology:locality }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3257686>.
?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/P1540>.
?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:Q3257686 . ?ent wdt:P1540 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Oviedo Pazhayannoor Block Panchayat Port Macquarie Dubbo Ontinyent