query-2f432f62f58b8cb58d5850dc4bfcb774
missing collection
Use at
- https://query.wikidata.org/sparql
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/>
SELECT ?item ?img ?KDM ?collection WHERE {
?item wdt:P170 wd:Q381238 .
?item wdt:P18 ?img .
minus{ ?item wdt:P195 ?collection . }
minus{ ?item p:P528 [ pq:P972 wd:Q106425660; ps:P528 ?KDM] . }
} order by ?KDM
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?KDM"):::projected
v4("?collection"):::projected
v3("?img"):::projected
v2("?item"):::projected
a1((" "))
c2(["wd:Q381238"]):::iri
c6(["wd:Q106425660"]):::iri
v2 --"p:direct/P170"--> c2
v2 --"p:direct/P18"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"p:direct/P195"--> v4
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
a1 --"p:qualifier/P972"--> c6
a1 --"p:statement/P528"--> v1
v2 --"p:P528"--> a1
end