query-fb0948620ab8982fd08d4f0e8f40b449
Films of film series without ordinal
Use at
- https://query.wikidata.org/sparql
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 ?filmLabel ?seriesLabel ?film ?series WHERE {
?film wdt:P31 wd:Q11424 .
?film p:P179 ?seriesContainer .
?seriesContainer v:P179 ?series .
FILTER NOT EXISTS { ?seriesContainer pq:P1545 ?ordinal }
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
}
ORDER BY ?series ?film
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?film"):::projected
v4("?ordinal")
v1("?series"):::projected
v3("?seriesContainer")
c9(["de"]):::literal
c7(["bd:serviceParam"]):::iri
c3(["wd:Q11424"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:qualifier/P1545"--> e0v2
e0v2("?ordinal"):::projected
e0v1("?seriesContainer"):::projected
end
f0--EXISTS--> f0e0
f0 --> v3
f0 --> c1
f0 --> v4
v3 --"p:qualifier/P1545"--> v4
v2 --"p:direct/P31"--> c3
v2 --"p:P179"--> v3
v3 --"p:statement/P179"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end