query-3c21a67d083a01805d0c1f6df8b74986
RemovalsThis sample query used to remove an erroneous main subject:
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
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
WHERE {?reference pr:P248 wd:Q180686.
?statement prov:wasDerivedFrom ?reference.
?statement ps:P921 wd:Q3025883.
?item p:P921 ?statement;
wdt:P921 wd:Q663041.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?reference")
v2("?statement")
c2(["wd:Q180686"]):::iri
c5(["wd:Q3025883"]):::iri
c8(["wd:Q663041"]):::iri
v1 --"p:reference/P248"--> c2
v2 --"prov:wasDerivedFrom"--> v1
v2 --"p:statement/P921"--> c5
v3 --"p:P921"--> v2
v3 --"p:direct/P921"--> c8