query-6ea6e889001837cd37b8383116cd8312
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?film ?filmLabel ?release_value WHERE
{
{
SELECT ?ordinal ?film (COUNT(?release_statement) AS ?releases) WHERE
{
?film p:P179 ?series .
?series ps:P179 wd:Q689438 .
?series pq:P1545 ?ordinal .
?film p:P577 ?release_statement
} GROUP BY ?ordinal ?film HAVING (?releases > 1)
}
?film p:P577 ?release_statement.
?release_statement ps:P577 ?release_value.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?film"):::projected
v4("?ordinal")
v5("?release_statement")
v6("?release_value"):::projected
v6("?releases")
v3("?series")
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q689438"]):::iri
f0[["?releases > '1^^xsd:integer'"]]
f0 --> v6
v2 --"p:P179"--> v3
v3 --"p:statement/P179"--> c4
v3 --"p:qualifier/P1545"--> v4
v2 --"p:P577"--> v5
bind2[/"count(?release_statement)"/]
v5 --o bind2
bind2 --as--o v6
v2 --"p:P577"--> v5
v5 --"p:statement/P577"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end