query-209078480d1986db34b9b8023d52d275

rq turtle/ttl

Counting across interwiki (Tagishsimon) SELECT ?wiki (count(?wiki) as ?count) WHERE { ?item wdt:P709 ?stat . ?article schema:about ?item ; schema:isPartOf ?wiki .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } group by ?wiki order by desc(?count)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Counting across interwiki (Tagishsimon)
SELECT ?wiki (count(?wiki) as ?count) 
WHERE 
{
  ?item wdt:P709 ?stat . 
  ?article schema:about ?item ;
          schema:isPartOf ?wiki .  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}  group by ?wiki order by desc(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?article") v6("?count") v2("?item") v3("?stat") v5("?wiki"):::projected c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P709"--> v3 v4 --"schema:about"--> v2 v4 --"schema:isPartOf"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind1[/"count(?wiki)"/] v5 --o bind1 bind1 --as--o v6