What is the {district of the city} with the {MAX(number of houses)} whose {instance of} is {district of the city}  ?
What district in the city has the MAX number of houses whose instance is in the district of the city?
What is the district of the city with the MAX(number of houses whose instance of is district of the city?
SELECT ?l WHERE { ?l rdf:type ontology:district_of_the_city_in_the_Czech_Republic . ?l property:number_of_houses ?c . ?l rdf:type ontology:district_of_the_city_in_the_Czech_Republic }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q21851888>.

?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/P4080>.
?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/P31> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q21851888> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q21851888 . ?ent wdt:P4080 ?obj . ?ent wdt:P31 wd:Q21851888 } ORDER BY DESC(?obj)LIMIT 5 
Brno-sever Pilsen 2 Pilsen 3 Brno-střed Ústí nad Labem-město