query-93e1dd758a3ae8f1a607d3d10a72fb59
TODO
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 ?item ?itemLabel ?count WHERE
{
{ SELECT ?item ?value (COUNT(?property) AS ?count) WHERE
{
?item wdt:P2966 ?value .
?item ?predicate [] .
?property wikibase:claim ?predicate .
?property wikibase:propertyType wikibase:ExternalId .
} GROUP BY ?item ?value } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?item ?itemLabel ?count ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?count"):::projected
v2("?item"):::projected
v4("?predicate")
v5("?property")
v3("?value")
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wikibase:ExternalId"]):::iri
v2 --"wdt:P2966"--> v3
v2 -->v4--> a1
v5 --"wikibase:claim"--> v4
v5 --"wikibase:propertyType"--> c4
bind1[/"count(?property)"/]
v5 --o bind1
bind1 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end