What is the {abandoned hamlet} with the {MAX(number of houses)} ?
What is the name of the abandoned hamlet that contains the most homes?
Which abandoned hamlet has the largest number of houses?
SELECT ?x WHERE { ?x rdf:type ontology:abandoned_hamlet . ?x property:number_of_houses ?w }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q27654220>.
?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/P4080>.
?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:Q27654220 . ?ent wdt:P4080 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Houžná Ústí Horní Rychnov Podolsko Šeřeč