What is the {national library} with the {MIN(collection or exhibition size)} whose {instance of} is {national library}  ?
Which national library has the smallest collection?
Can you say which national library has the smallest collection?
SELECT ?y WHERE { ?y rdf:type ontology:national_library . ?y rdf:type ontology:national_library . ?y property:collection_or_exhibition_size ?n }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q22806>.

?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/P1436>.
?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/Q22806> .

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q22806 . ?ent wdt:P1436 ?obj . ?ent wdt:P31 wd:Q22806} ORDER BY ASC(?obj)LIMIT 5 
National Library of the Czech Republic National Library of Catalonia National Library of the Czech Republic National Library of the Czech Republic National Library of the Czech Republic