query-4ffc49b4da5d76dd581280ef8a84320d
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
SELECT distinct ?item ?some_prop WHERE {
?item ?some_prop ?statement.
?statement prov:wasDerivedFrom ?ref.
?ref pr:P248 wd:Q2494649.
?ref pr:P854 ?some_ref, ?some_ref2.
?ref pr:P245 ?some_id.
FILTER(?some_ref != ?some_ref2)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v6("?ref")
v7("?some_id")
v4("?some_prop"):::projected
v1("?some_ref")
v2("?some_ref2")
v5("?statement")
c3(["wd:Q2494649"]):::iri
f0[["?some_ref != ?some_ref2"]]
f0 --> v1
f0 --> v2
v3 -->v4--> v5
v5 --"prov:wasDerivedFrom"--> v6
v6 --"pr:P248"--> c3
v6 --"pr:P854"--> v1
v6 --"pr:P854"--> v2
v6 --"pr:P245"--> v7