query-bfd2724eb51234a0aa2974d8939140bf

rq turtle/ttl

Marvel film series: German and US release dates compared

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?film ?ordinal ?filmLabel ?germanRelease ?usRelease ((?usRelease-?germanRelease)AS ?diff) WHERE {
    ?film p:P179 ?series .
    ?series v:P179 wd:Q642878 .
    ?series pq:P1545 ?ordinal .
    ?film p:P577 ?pub1 . ?pub1 pq:P291 wd:Q183 . ?pub1 v:P577 ?germanRelease . ?pub1 wikibase:rank ?rank1 FILTER (?rank1!=wikibase:DeprecatedRank) .
    ?film p:P577 ?pub2 . ?pub2 pq:P291 wd:Q30 . ?pub2 v:P577 ?usRelease . ?pub2 wikibase:rank ?rank2 FILTER (?rank2!=wikibase:DeprecatedRank)
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ASC(xsd:integer(?ordinal))

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v10("?diff") v4("?film"):::projected v7("?germanRelease"):::projected v1("?ordinal"):::projected v6("?pub1") v8("?pub2") v3("?rank1") v2("?rank2") v5("?series") v9("?usRelease"):::projected c11(["wd:Q30"]):::iri c15(["en"]):::literal c13(["bd:serviceParam"]):::iri c8(["wd:Q183"]):::iri c4(["wd:Q642878"]):::iri f0[["?rank2 != 'wikibase:DeprecatedRank'"]] f0 --> v2 f1[["?rank1 != 'wikibase:DeprecatedRank'"]] f1 --> v3 v4 --"p:P179"--> v5 v5 --"p:statement/P179"--> c4 v5 --"p:qualifier/P1545"--> v1 v4 --"p:P577"--> v6 v6 --"p:qualifier/P291"--> c8 v6 --"p:statement/P577"--> v7 v6 --"wikibase:rank"--> v3 v4 --"p:P577"--> v8 v8 --"p:qualifier/P291"--> c11 v8 --"p:statement/P577"--> v9 v8 --"wikibase:rank"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end bind2[/"?usRelease - ?germanRelease"/] v9 --o bind2 v7 --o bind2 bind2 --as--o v10