query-0467a7cd6c3316ce02a62bd1ab4c4dbe
Propertiesinstance of (P31)main subject (P921)subclass of (P279)
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 ?subject ?subjectLabel (COUNT (?item) AS ?count)
WHERE
{
?item wdt:P31 wd:Q13442814.
?item wdt:P921 ?subject.
?subject wdt:P31/wdt:P279* wd:Q7397.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?subject ?subjectLabel
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("?subject"):::projected
a1((" "))
c5(["wd:Q7397"]):::iri
c2(["wd:Q13442814"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wdt:P921"--> v3
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v4