query-18a13962bd756697bd3fb984b0e65fc5
Propertiesinstance of (P31)subclass of (P279)genre (P136)
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#>
SELECT ?item ?itemLabel {
?item wdt:P31/wdt:P279* wd:Q7889 .
?item wdt:P136 [] .
FILTER NOT EXISTS {
?item wdt:P136 ?xxx .
FILTER( ?xxx NOT IN (
wd:Q2762504,
wd:Q21192427,
wd:Q85341917,
wd:Q85422949,
wd:Q107542272
) ) .
}
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;
v2("?item"):::projected
v1("?xxx")
a2((" "))
a1((" "))
c11(["bd:serviceParam"]):::iri
c9(["wd:Q7889"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?xxx != 'wd:Q2762504'?xxx != 'wd:Q21192427'?xxx != 'wd:Q85341917'?xxx != 'wd:Q85422949'?xxx != 'wd:Q107542272'"]]
e0f0 --> e0v1
e0v2 --"wdt:P136"--> e0v1
e0v2("?item"):::projected
e0v1("?xxx"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> c6
f1[["?xxx != 'wd:Q2762504'?xxx != 'wd:Q21192427'?xxx != 'wd:Q85341917'?xxx != 'wd:Q85422949'?xxx != 'wd:Q107542272'"]]
f1 --> v1
v2 --"wdt:P136"--> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c9
v2 --"wdt:P136"--> a2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end