query-88e3092dd89b255d3e20ff2adbba33a9
Ermittler-Serien mit Auflistung aller ausgestrahlter Folgen
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#>
SELECT ?series ?seriesLabel (COUNT(DISTINCT(?film)) AS ?count) (GROUP_CONCAT(DISTINCT(?film);separator=" ") AS ?films) WHERE {
?series wdt:P361 wd:Q689438 .
?film wdt:P179 ?series .
?film wdt:P577 ?publication FILTER(?publication<NOW())
SERVICE wikibase:label{bd:serviceParam wikibase:language "de"}
}
GROUP BY ?series ?seriesLabel
ORDER BY DESC(?count) ?seriesLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?count")
v5("?film"):::projected
v6("?films")
v3("?publication")
v4("?series"):::projected
v2("?seriesLabel"):::projected
c8(["de"]):::literal
c6(["bd:serviceParam"]):::iri
c2(["wd:Q689438"]):::iri
f0[["?publication < NOW()"]]
f0 --> v3
v4 --"wdt:P361"--> c2
v5 --"wdt:P179"--> v4
v5 --"wdt:P577"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind3[/"count(?film)"/]
v5 --o bind3
bind3 --as--o v6
bind4[/"?film"/]
v5 --o bind4
bind4 --as--o v6