query-cd3eb83674e288f45bcd558d8fcb066b

rq turtle/ttl

collection->location

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item  ?collection ?loc WHERE {
 ?item wdt:P170 wd:Q381238 .    
 ?item wdt:P195 ?collection .    
 minus{ ?item wdt:P276 ?loc .   } 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?collection"):::projected v1("?item"):::projected v3("?loc"):::projected c2(["wd:Q381238"]):::iri v1 --"wdt:P170"--> c2 v1 --"wdt:P195"--> v2 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P276"--> v3 end