query-c2f59a948cef4cc75f03aeb9506225d6
Episodes of Mr. Bean
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?episode ?ordinal ?title ?publication ?firstPerformance ?duration ?imdb WHERE {
?episode p:P179 ?series .
?series v:P179 wd:Q484020.
?series pq:P1545 ?ordinal .
?episode wdt:P345 ?imdb .
?episode wdt:P1476 ?title .
OPTIONAL {?episode wdt:P2047 ?duration}
OPTIONAL {?episode wdt:P577 ?publication}
OPTIONAL {?episode wdt:P1191 ?firstPerformance}
}
ORDER BY ASC(xsd:integer(?ordinal))
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?duration"):::projected
v2("?episode"):::projected
v8("?firstPerformance"):::projected
v4("?imdb"):::projected
v1("?ordinal"):::projected
v7("?publication"):::projected
v3("?series")
v5("?title"):::projected
c3(["wd:Q484020"]):::iri
v2 --"p:P179"--> v3
v3 --"p:statement/P179"--> c3
v3 --"p:qualifier/P1545"--> v1
v2 --"p:direct/P345"--> v4
v2 --"p:direct/P1476"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P2047".-> v6
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P577".-> v7
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P1191".-> v8
end