query-268e4f1735a14fdb585a52d2ab49e672
title: Instances of "media franchise" that are also instances of "anime television series", "manga series", "light novel", "visual novel", "original video animation", or "original net animation"; "media franchise" items should be separate from those of instances of any of the six. SELECT ?item ?itemLabel ?instanceofLabel WHERE { ?item wdt:P31 wd:Q196600 . { ?item wdt:P31 wd:Q63952888 . } UNION { ?item wdt:P31 wd:Q21198342 . } UNION { ?item wdt:P31 wd:Q747381 . } UNION { ?item wdt:P31 wd:Q689445 . } UNION { ?item wdt:P31 wd:Q220898 . } UNION { ?item wdt:P31 wd:Q1047299 . } ?item wdt:P31 ?instanceof . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?itemLabel
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#>
#title: Instances of "media franchise" that are also instances of "anime television series", "manga series", "light novel", "visual novel", "original video animation", or "original net animation"; "media franchise" items should be separate from those of instances of any of the six.
SELECT ?item ?itemLabel ?instanceofLabel
WHERE
{
?item wdt:P31 wd:Q196600 .
{ ?item wdt:P31 wd:Q63952888 . } UNION
{ ?item wdt:P31 wd:Q21198342 . } UNION
{ ?item wdt:P31 wd:Q747381 . } UNION
{ ?item wdt:P31 wd:Q689445 . } UNION
{ ?item wdt:P31 wd:Q220898 . } UNION
{ ?item wdt:P31 wd:Q1047299 . }
?item wdt:P31 ?instanceof .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?instanceof")
v2("?item"):::projected
v1("?itemLabel"):::projected
c8(["wd:Q1047299"]):::iri
c10(["bd:serviceParam"]):::iri
c7(["wd:Q220898"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q63952888"]):::iri
c5(["wd:Q747381"]):::iri
c6(["wd:Q689445"]):::iri
c2(["wd:Q196600"]):::iri
c4(["wd:Q21198342"]):::iri
v2 --"wdt:P31"--> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
subgraph union4[" Union "]
subgraph union4l[" "]
style union4l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c8
end
subgraph union4r[" "]
style union4r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c7
end
union4r <== or ==> union4l
end
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c6
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c5
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c4
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c3
end
union0r <== or ==> union0l
end
v2 --"wdt:P31"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end