query-6e80551e4f44d6b9d5a2be779909e4bc
TODO
Use at
- https://query.wikidata.org/sparql
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
WHERE {
?item p:P6216 ?statement .
?statement ps:P6216 wd:Q19652 . # copyright status = public domain
OPTIONAL {?statement pq:P459 ?p .} .
OPTIONAL {?statement pq:P1001 ?q } .
FILTER( !BOUND( ?p ) ) . # exclude if P459 qualifier present
FILTER( !BOUND( ?q ) ) . # exclude if P1001 qualifier present
} order by ?det
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?det")
v4("?item"):::projected
v3("?p")
v2("?q")
v5("?statement")
c3(["wd:Q19652"]):::iri
f0[["not bound(?q)"]]
f0 --> v2
f1[["not bound(?p)"]]
f1 --> v3
v4 --"p:P6216"--> v5
v5 --"p:statement/P6216"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:qualifier/P459".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:qualifier/P1001".-> v2
end