What is the {independent city} with the {MAX(vehicles per capita (1000))} ?
What is the city with most vehicles?
Give the name of the city with the most vehicles per capita (1000)?
SELECT ?g WHERE { ?g property:vehicles_per_thousand_people ?o . ?g rdf:type ontology:independent_city_of_Germany }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q22865>.
?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/P5167>.
?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:Q22865 . ?ent wdt:P5167 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Berlin