query-b3687fb8d8c004065fbbf2aec0afb46b

rq turtle/ttl

How many triples for Q30

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?b (COUNT(?c) as ?count) 
WHERE
{
    { wd:Q30 ?b ?c }
    UNION { wd:Q30 ?b ?c . ?prop wikibase:claim ?b }
}
GROUP BY ?b
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?b"):::projected v3("?c"):::projected v5("?count") v4("?prop") c1(["wd:Q30"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; c1 -->v2--> v3 v4 --"wikibase:claim"--> v2 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; c1 -->v2--> v3 end union0r <== or ==> union0l end bind1[/"count(?c)"/] v3 --o bind1 bind1 --as--o v5