query-11cb546958deafe68fa05e19815762d4
Most used domains (excl. language) query
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
select ?code (count(?code) as ?count)
{
{ select (replace(?value,"^(?:[a-z-]+\\.)?([^:]+):.+$","$1") AS ?code) { ?item wdt:P6262 ?value } }
}
group by ?code order by desc(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?code"):::projected
v5("?count")
v2("?item")
v3("?value")
v2 --"wdt:P6262"--> v3
bind0[/"replace(?value,'^(?:#91;a-z-#93;+\.)?(#91;^:#93;+):.+$','$1')"/]
v3 --o bind0
bind0 --as--o v4
bind2[/"count(?code)"/]
v4 --o bind2
bind2 --as--o v5