query-79090dec476b56cfea84216b62aa3e02

rq turtle/ttl

Television series: Stromberg

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>

SELECT ?episode ?ordinal (CONCAT("S",?season,"E",?episodeInSeason) AS ?SE) ?title ?duration ?publication ?wrongPub1 ?wrongPub2 ?imdb
WHERE {
    ?seasonQ p:P179 ?seriesBlock .
    ?seriesBlock v:P179 wd:Q1545694 .
    ?seriesBlock pq:P1545 ?season .
    ?episode p:P4908 ?seasonBlock .
    ?seasonBlock v:P4908 ?seasonQ .
    ?seasonBlock pq:P1545 ?episodeInSeason .
    ?episode p:P179 ?seriesBlock2 . ?seriesBlock2 v:P179 wd:Q1545694 . ?seriesBlock2 pq:P1545 ?ordinal .
    OPTIONAL {?episode wdt:P1476 ?title}
    OPTIONAL {?episode wdt:P2047 ?duration}
    OPTIONAL {?episode wdt:P345 ?imdb}
    OPTIONAL {?episode p:P449 ?network . ?network pq:P585 ?wrongPub1}
    OPTIONAL {?episode wdt:P577 ?publication}
    OPTIONAL {?episode wdt:P1191 ?wrongPub2}
    SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
}
ORDER BY ASC(xsd:integer(?ordinal))

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v16("?SE") v10("?duration"):::projected v5("?episode"):::projected v7("?episodeInSeason"):::projected v11("?imdb"):::projected v12("?network") v1("?ordinal"):::projected v14("?publication"):::projected v4("?season"):::projected v6("?seasonBlock") v2("?seasonQ") v3("?seriesBlock") v8("?seriesBlock2") v9("?title"):::projected v13("?wrongPub1"):::projected v15("?wrongPub2"):::projected c17(["de"]):::literal c3(["wd:Q1545694"]):::iri c15(["bd:serviceParam"]):::iri v2 --"p:P179"--> v3 v3 --"p:statement/P179"--> c3 v3 --"p:qualifier/P1545"--> v4 v5 --"p:P4908"--> v6 v6 --"p:statement/P4908"--> v2 v6 --"p:qualifier/P1545"--> v7 v5 --"p:P179"--> v8 v8 --"p:statement/P179"--> c3 v8 --"p:qualifier/P1545"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:direct/P1476".-> v9 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:direct/P2047".-> v10 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:direct/P345".-> v11 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:P449".-> v12 v12 --"p:qualifier/P585"--> v13 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:direct/P577".-> v14 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:direct/P1191".-> v15 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c15 --"wikibase:language"--> c17 end bind0[/"concat('S',?season,'E',?episodeInSeason)"/] v4 --o bind0 v7 --o bind0 bind0 --as--o v16