query-002aeb488c99bfe213c7a34a6445b45e
title:Conteggio biblioteche per tipo in Italia SELECT ?istanzaLabel (COUNT(DISTINCT ?item) AS ?count) WHERE { {?item wdt:P31/wdt:P279* wd:Q7075} . ?item wdt:P17 wd:Q38; wdt:P791 ?isil; wdt:P31 ?istanza. SERVICE wikibase:label { bd:serviceParam wikibase:language "it, en". } } GROUP BY ?istanzaLabel ORDER BY DESC(?count)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Conteggio biblioteche per tipo in Italia
SELECT ?istanzaLabel (COUNT(DISTINCT ?item) AS ?count) WHERE {
{?item wdt:P31/wdt:P279* wd:Q7075} .
?item wdt:P17 wd:Q38; wdt:P791 ?isil; wdt:P31 ?istanza.
SERVICE wikibase:label { bd:serviceParam wikibase:language "it, en". }
}
GROUP BY ?istanzaLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count")
v3("?isil")
v4("?istanza")
v2("?item"):::projected
a1((" "))
c3(["wd:Q7075"]):::iri
c5(["wd:Q38"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["it, en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P17"--> c5
v2 --"wdt:P791"--> v3
v2 --"wdt:P31"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v5