query-7fd2fc30fb34c4186a3c2fbcf4edb7a9
human (Q5)
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 wikibase:sitelinks 0; wikibase:identifiers 0; wdt:P31 wd:Q5 .
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|p:P166|p:P5008 [] }
?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
a1((" "))
a2((" "))
a5((" "))
a3((" "))
a4((" "))
a6((" "))
c5(["0^^xsd:integer"]):::literal
c8(["wd:Q5"]):::iri
f0[["not bound(?p)"]]
f0 --> v2
v4 --"wikibase:sitelinks"--> c5
v4 --"wikibase:identifiers"--> c5
v4 --"p:direct/P31"--> c8
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
a1 -->v5--> v4
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
a2 --"schema:about"--> v4
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a3 -->v3--> a4
a5 -."prov:wasDerivedFrom".-> a3
v4 -->v2--> a5
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;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
v4 --"p:P5008"--> a6
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:P166"--> a6
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:P1343"--> a6
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:P973"--> a6
end
union0r <== or ==> union0l
end
end
v4 --"wikibase:statements"--> v1