query-870e1da4cc78ae5a96ff77be3398fe2c
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 ps: <http://www.wikidata.org/prop/statement/>
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 ?season ?seasonLabel ?number WHERE {
?item wdt:P31 wd:Q21191270 .
MINUS { ?item wdt:P31 wd:Q21664088 .}
?item p:P4908 ?season_statement.
?season_statement ps:P4908 ?season .
?season_statement pq:P1545 ?number.
?item p:P361 ?is_part_of_statement.
?is_part_of_statement ps:P361 ?season .
?is_part_of_statement pq:P1545 ?number.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
} ORDER BY ?item
Query found at
- https://www.wikidata.org/w/index.php?title=Topic:Vxjzdfcd72xtm3pd&topic_showPostId=vxmrcdo4tqmmklxj#flow-post-vxmrcdo4tqmmklxj
- https://www.wikidata.org/wiki/Topic:Vxjzdfcd72xtm3pd
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?is_part_of_statement")
v1("?item"):::projected
v4("?number"):::projected
v3("?season"):::projected
v2("?season_statement")
c10(["bd:serviceParam"]):::iri
c3(["wd:Q21664088"]):::iri
c12(["en"]):::literal
c2(["wd:Q21191270"]):::iri
v1 --"p:direct/P31"--> c2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:direct/P31"--> c3
end
v1 --"p:P4908"--> v2
v2 --"p:statement/P4908"--> v3
v2 --"p:qualifier/P1545"--> v4
v1 --"p:P361"--> v5
v5 --"p:statement/P361"--> v3
v5 --"p:qualifier/P1545"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end