query-13338312596750f159ebe076bd3a5243
Pintoch
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 ?legalLabel ?some ?someLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?item wdt:P1454 ?legal.
?legal wdt:P31/wdt:P279* wd:Q1269299.
?item wdt:P31 ?some.
MINUS { ?item wdt:P31 ?some.
?some wdt:P31/wdt:P279 wd:Q43229. }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?legal")
v3("?some"):::projected
a1((" "))
a2((" "))
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c9(["wd:Q43229"]):::iri
c8(["wd:Q1269299"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P1454"--> v2
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c8
v1 --"wdt:P31"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> v3
v3 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c9
end