query-f5b302d69697eee8be9b3405378ce1c2
Count the external identifiers People in CBDB has by frequency
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 ?prop ?propLabel ?count WHERE {
{
SELECT ?prop (COUNT(DISTINCT ?item) AS ?count) WHERE {
?item wdt:P497 ?yp_id .
?item ?p ?id .
?prop wikibase:directClaim ?p; wikibase:propertyType wikibase:ExternalId.
} GROUP BY ?prop
}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
} ORDER BY DESC (?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?count"):::projected
v5("?id")
v2("?item")
v4("?p")
v6("?prop"):::projected
v3("?yp_id")
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
c4(["wikibase:ExternalId"]):::iri
v2 --"wdt:P497"--> v3
v2 -->v4--> v5
v6 --"wikibase:directClaim"--> v4
v6 --"wikibase:propertyType"--> c4
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end