query-965484f8a08fc7303bed8dab8abc2e69
Afleveringen
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select ?item ?itemLabel ?episode ?year where {
?item wdt:P31 wd:Q21191270;
wdt:P179 wd:Q2330424;
wdt:P577 ?pubdate;
p:P179 ?series.
?series pq:P1545 ?episodeString.
bind (year(?pubdate) as ?year).
bind (xsd:integer(?episodeString) as ?episode).
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;
v6("?episode"):::projected
v4("?episodeString")
v1("?item"):::projected
v2("?pubdate")
v3("?series")
v5("?year"):::projected
c9(["bd:serviceParam"]):::iri
c4(["wd:Q2330424"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q21191270"]):::iri
v1 --"p:direct/P31"--> c2
v1 --"p:direct/P179"--> c4
v1 --"p:direct/P577"--> v2
v1 --"p:P179"--> v3
v3 --"p:qualifier/P1545"--> v4
bind0[/"year-from-dateTime(?pubdate)"/]
v2 --o bind0
bind0 --as--o v5
bind1[/"http://www.w3.org/2001/XMLSchema#integer(?episodeString)"/]
v4 --o bind1
bind1 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end