query-da4af87fd13077ee1cb00863ad0257b4
occurrence (Q1190554) (times out)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
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 ?statements WHERE {
?item wdt:P31/wdt:P279* wd:Q1190554; wikibase:sitelinks 0; wikibase:identifiers 0 .
MINUS { [] ?backlink ?item }
MINUS { [] schema:about ?item }
OPTIONAL { ?item ?p [ prov:wasDerivedFrom [ ?pr [] ] ] . FILTER (?pr NOT IN (pr:P143, pr:P3452, pr:P4656)) } FILTER(!BOUND(?p))
MINUS { ?item p:P973|p:P1343 [] }
?item wikibase:statements ?statements .
} ORDER BY ASC(?statements)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?backlink")
v4("?item"):::projected
v2("?p")
v3("?pr")
v1("?statements"):::projected
a2((" "))
a3((" "))
a1((" "))
a6((" "))
a4((" "))
a5((" "))
a7((" "))
c6(["wd:Q1190554"]):::iri
c8(["0^^xsd:integer"]):::literal
f0[["not bound(?p)"]]
f0 --> v2
v4 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c6
v4 --"wikibase:sitelinks"--> c8
v4 --"wikibase:identifiers"--> c8
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
a2 -->v5--> v4
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
a3 --"schema:about"--> v4
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a4 -->v3--> a5
a6 -."prov:wasDerivedFrom".-> a4
v4 -->v2--> a6
end
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v4 --"p:P1343"--> a7
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:P973"--> a7
end
union0r <== or ==> union0l
end
end
v4 --"wikibase:statements"--> v1