query-9324881e15ec5d2ed5f5ab578e61e9e2
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item WHERE {
?item wdt:P1472 [] .
?item wdt:P650 ?rdkid .
?item wdt:P1472 [] .
?item p:P569 ?dobstatement .
?dobstatement psv:P569 [
wikibase:timePrecision "9"^^xsd:integer ;
wikibase:timeValue ?birth ;
] .
?dobstatement prov:wasDerivedFrom ?provenance .
?provenance pr:P248 wd:Q36578 .
MINUS { ?item p:P569 ?dobstatement2 . ?dobstatement2 prov:wasDerivedFrom ?provenance2 . ?provenance2 pr:P248 wd:Q17299517 }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?birth")
v3("?dobstatement")
v6("?dobstatement2")
v1("?item"):::projected
v5("?provenance")
v7("?provenance2")
v2("?rdkid")
a1((" "))
a2((" "))
a3((" "))
c11(["wd:Q17299517"]):::iri
c5(["9^^xsd:integer"]):::literal
c10(["wd:Q36578"]):::iri
v1 --"p:direct/P1472"--> a1
v1 --"p:direct/P650"--> v2
v1 --"p:direct/P1472"--> a2
v1 --"p:P569"--> v3
a3 --"wikibase:timePrecision"--> c5
a3 --"wikibase:timeValue"--> v4
v3 --"p:statement/value/P569"--> a3
v3 --"prov:wasDerivedFrom"--> v5
v5 --"p:reference/P248"--> c10
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:P569"--> v6
v6 --"prov:wasDerivedFrom"--> v7
v7 --"p:reference/P248"--> c11
end