query-d27ad73f5e8eac541f60dbec7f07ab4a
Filmportal by instance
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?instance ?instanceLabel (COUNT(DISTINCT(?item)) AS ?items) WHERE {
?item wdt:P2639 ?filmportal .
?item wdt:P31 ?instance
SERVICE wikibase:label {bd:serviceParam wikibase:language "de"}
}
GROUP BY ?instance ?instanceLabel
ORDER BY DESC(?items)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?filmportal")
v4("?instance"):::projected
v2("?item"):::projected
v5("?items")
c6(["de"]):::literal
c4(["bd:serviceParam"]):::iri
v2 --"wdt:P2639"--> v3
v2 --"wdt:P31"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v5