query-846aa60ad87f3c8e899de043ed3b9950
TODO
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#>
#defaultView:Timeline
SELECT ?episode ?episodeLabel ?startdate ?enddate ?date
WHERE
{ ?episode wdt:P179 wd:Q5930.
OPTIONAL { ?episode wdt:P1191 ?date }
OPTIONAL { ?episode wdt:P580 ?startdate }
OPTIONAL { ?episode wdt:P582 ?enddate }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?date"):::projected
v4("?enddate"):::projected
v1("?episode"):::projected
v3("?startdate"):::projected
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
c2(["wd:Q5930"]):::iri
v1 --"wdt:P179"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1191".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P580".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P582".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end