query-805b007ea58498dda08a4fac526751de
Propertiesgenre (P136)instance of (P31)
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 ?genre ?genreLabel (COUNT(?item) AS ?count ) WHERE {
?item wdt:P136 ?genre.
?item wdt:P31 wd:Q860861.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
GROUP BY ?genre ?genreLabel
ORDER BY DESC(?count)
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v3("?genre"):::projected
v2("?item"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;"]):::literal
c3(["wd:Q860861"]):::iri
v2 --"wdt:P136"--> v3
v2 --"wdt:P31"--> c3
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