query-2ab9cd3261d7c6143b7df35d0aa8fff4
technique
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#>
SELECT ?materialLabel (count(?item) as ?count) WHERE {
?item wdt:P170 wd:Q381238 .
?item wdt:P186 ?material.
SERVICE wikibase:label { bd:serviceParam wikibase:language "pl,pl" }
} group by ?materialLabel
order by desc(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v2("?item"):::projected
v3("?material")
c7(["pl,pl"]):::literal
c2(["wd:Q381238"]):::iri
c5(["bd:serviceParam"]):::iri
v2 --"wdt:P170"--> c2
v2 --"wdt:P186"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v4