query-8ab6c9a08857fcedcf5639cbfdf18e43

rq turtle/ttl

Move P625 of organizations items to be qualifier of P159 Jklamo: Request date: 29 November 2017, byTask description. (P159)headquarters location (or its subclasses) to be qualifier of (Q43229)organization (P31)instance of of items of (P625)coordinate location Move

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item WHERE { ?item wdt:P31/wdt:P279* wd:Q43229; wdt:P625 []; wdt:P159 [] .
                             MINUS { ?item p:P159/pq:P625 [] } 
                             MINUS {?item wdt:P31/wdt:P279* wd:Q2221906 } 
                             MINUS {?item wdt:P31/wdt:P279* wd:Q618123 } }
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected a2((" ")) a3((" ")) a5((" ")) a1((" ")) a4((" ")) a6((" ")) a7((" ")) c8(["wd:Q2221906"]):::iri c9(["wd:Q618123"]):::iri c3(["wd:Q43229"]):::iri v1 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c3 v1 --"p:direct/P625"--> a2 v1 --"p:direct/P159"--> a3 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"p:P159"--> a4 a4 --"p:qualifier/P625"--> a5 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v1 --"p:direct/P31"--> a6 a6 --"p:direct/P279"--> c8 end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v1 --"p:direct/P31"--> a7 a7 --"p:direct/P279"--> c9 end