What is the {hamlet} with the {MIN(number of houses)} whose {located in the administrative territorial entity} is {Bernried}  ?
The smallest village in Bernried is?
What is the smallest village in Bernried?
SELECT ?v WHERE { ?v rdf:type ontology:hamlet . ?v property:number_of_houses ?u . ?v property:located_in_the_administrative_territorial_entity resource:Bernried }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5084>.

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

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q5084 . ?ent wdt:P4080 ?obj . ?ent wdt:P131 wd:Q260902} ORDER BY ASC(?obj)LIMIT 5 
Pitzen Staudachberg (Bernried) Unterkager