query-d2599bbb58ab54fa3a906b980df040ab

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. 
  ?item ?ppp wd:Q15143191 .
  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; v5("?channel"):::projected v2("?item"):::projected v1("?number"):::projected v3("?ppp") v4("?stat") a1((" ")) c9(["bd:serviceParam"]):::iri c3(["wd:Q17125263"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q15143191"]):::iri 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 v2 -->v3--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:P8687".-> v4 v4 --"p:qualifier/P2397"--> v5 v4 --"p:statement/P8687"--> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end