query-bd99f4d54d132603065a25044af8badd

rq turtle/ttl

Languages

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
  ?count
  (CONCAT("#language/", SUBSTR(STR(?language), 32), "/podcast") AS ?countUrl)

  ?language ?languageLabel
  (CONCAT("#language/", SUBSTR(STR(?language), 32)) AS ?languageUrl)

  ?example_podcast ?example_podcastLabel
  (CONCAT("#podcast/", SUBSTR(STR(?example_podcast), 32)) AS ?example_podcastUrl)

WHERE {
   {
  SELECT 
    (COUNT(?podcast) AS ?count)
    ?language
    (SAMPLE(?podcast) AS ?example_podcast)
  WHERE {
    ?podcast wdt:P31 / wdt:P279* wd:Q24634210 ;
             wdt:P364| wdt:P407 ?language 
  }
  GROUP BY ?language
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count"):::projected v5("?countUrl") v4("?example_podcast"):::projected v7("?example_podcastUrl") v3("?language"):::projected v6("?languageUrl") v2("?podcast") a1((" ")) c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q24634210"]):::iri v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P407"--> v3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P364"--> v3 end union0r <== or ==> union0l end bind2[/"count(?podcast)"/] v2 --o bind2 bind2 --as--o v4 bind3[/"sample(?podcast)"/] v2 --o bind3 bind3 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind4[/"concat('#language/',substring(str(?language),'32^^xsd:integer'),'/podcast')"/] v3 --o bind4 bind4 --as--o v5 bind5[/"concat('#language/',substring(str(?language),'32^^xsd:integer'))"/] v3 --o bind5 bind5 --as--o v6 bind6[/"concat('#podcast/',substring(str(?example_podcast),'32^^xsd:integer'))"/] v4 --o bind6 bind6 --as--o v7