query-9d667f07d83bde91c38f56ba6d7d79e8
Tatortfolgen mit mehreren RegisseurenDie folgende Abfrage zeigt alle Folgen, in denen mehre Personen Regie führten.
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX v: <http://www.wikidata.org/prop/statement/>
SELECT ?film ?ordinal ?publication ?filmLabel (GROUP_CONCAT(DISTINCT(?directorName);separator=", ") AS ?directors) (COUNT(?directorName) AS ?count) WHERE {
?film p:P179 ?series . ?series v:P179 wd:Q689438 . ?series pq:P1545 ?ordinal .
?film wdt:P577 ?publication .
?film wdt:P57 ?dir . ?dir rdfs:label ?directorName . FILTER(lang(?directorName) = "de")
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
}
GROUP BY ?film ?filmLabel ?ordinal ?publication
HAVING (?count > 1)
ORDER BY ?publication
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v9("?count")
v7("?dir")
v3("?directorName"):::projected
v8("?directors")
v4("?film"):::projected
v6("?ordinal"):::projected
v1("?publication"):::projected
v5("?series")
c2(["de"]):::literal
c11(["bd:serviceParam"]):::iri
c5(["wd:Q689438"]):::iri
f0[["?count > '1^^xsd:integer'"]]
f0 --> v9
f1[["?directorName = 'de'"]]
f1 --> v3
v4 --"p:P179"--> v5
v5 --"p:statement/P179"--> c5
v5 --"p:qualifier/P1545"--> v6
v4 --"p:direct/P577"--> v1
v4 --"p:direct/P57"--> v7
v7 --"rdfs:label"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c2
end
bind4[/"?directorName"/]
v3 --o bind4
bind4 --as--o v8
bind5[/"count(?directorName)"/]
v3 --o bind5
bind5 --as--o v9