query-a55174294420bd0380067a7d50543f14

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?channel ?number
WHERE 
{
  ?item wdt:P106 wd:Q17125263. 
  FILTER NOT EXISTS {?item wdt:P18 [].} 
  OPTIONAL {?item p:P8687 ?stat . 
            ?stat pq:P2397 ?channel .
            ?stat ps:P8687 ?number . }

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by desc(?number)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?channel"):::projected v2("?item"):::projected v1("?number"):::projected v3("?stat") a1((" ")) c8(["bd:serviceParam"]):::iri c3(["wd:Q17125263"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"p:direct/P18"--> e0a1 e0v1("?item"):::projected e0a1((" ")):::projected end f0--EXISTS--> f0e0 f0 --> v2 f0 --> c1 f0 --> a1 v2 --"p:direct/P18"--> a1 v2 --"p:direct/P106"--> c3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:P8687".-> v3 v3 --"p:qualifier/P2397"--> v4 v3 --"p:statement/P8687"--> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end