query-0a3df1f95774f80bf29ba0658541dc33
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT distinct ?item ?statement ?some_ref WHERE {
?item p:P569 ?statement.
?statement prov:wasDerivedFrom ?ref.
?ref pr:P854 ?some_ref, ?some_ref2.
FILTER(?some_ref != ?some_ref2)
FILTER(NOT EXISTS { ?ref pr:P248 ?s. })
}
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?item"):::projected
v1("?ref")
v2("?s")
v3("?some_ref"):::projected
v4("?some_ref2")
v6("?statement"):::projected
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:reference/P248"--> e0v2
e0v1("?ref"):::projected
e0v2("?s"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"p:reference/P248"--> v2
f1[["?some_ref != ?some_ref2"]]
f1 --> v3
f1 --> v4
v5 --"p:P569"--> v6
v6 --"prov:wasDerivedFrom"--> v1
v1 --"p:reference/P854"--> v3
v1 --"p:reference/P854"--> v4