What is the {Hanseatic city} with the {MAX(vehicles per capita (1000))} whose {category of associated people} is {Category:People from Lübeck}  ?
What is the Hanseatic city with the most noteworthy vehicles per capita (1000) whose category of related individuals is Category:People from Lübeck?
What is the Hanseatic city with the highest vehicles per capita (1000) whose category of associated people is Category:People from Lübeck?
SELECT ?o WHERE { ?o property:category_of_associated_people resource:Category:People_from_Lübeck . ?o rdf:type ontology:Hanseatic_city . ?o property:vehicles_per_thousand_people ?r }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q707813>.

?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P5167>.
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj1.

?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1792> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q8741076> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q707813 . ?ent wdt:P5167 ?obj . ?ent wdt:P1792 wd:Q8741076 } ORDER BY DESC(?obj)LIMIT 5 
Lübeck