query-4b76bc4f676e69e7b4c14baa0aca932f

rq turtle/ttl

wikibase:wikiGroup "wikipedia"

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?lang (COUNT(DISTINCT ?article) AS ?count) WHERE {

  ?item wdt:P1367 ?yp_id .  # find articles about things with a BBC 'Your paintings' artist identifier
  ?article schema:about ?item .
  ?article schema:isPartOf / wikibase:wikiGroup "wikipedia" .  
  ?article schema:inLanguage ?lang .
} GROUP BY ?lang
ORDER BY DESC (?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?article"):::projected v6("?count") v2("?item") v5("?lang"):::projected v3("?yp_id") a1((" ")) c5(["wikipedia"]):::literal v2 --"wdt:P1367"--> v3 v4 --"schema:about"--> v2 v4 --"schema:isPartOf"--> a1 a1 --"wikibase:wikiGroup"--> c5 v4 --"schema:inLanguage"--> v5 bind1[/"count(?article)"/] v4 --o bind1 bind1 --as--o v6