query-b6e95e497c1d2c4a7a7bbf25e312eed1
TODO items with P1472 and P650 that have year DOB
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 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 p:P569 ?dobstatement .
?dobstatement psv:P569 [
wikibase:timePrecision "9"^^xsd:integer ;
wikibase:timeValue ?birth ;
]
MINUS { ?dobstatement prov:wasDerivedFrom ?provenance .
MINUS { ?provenance pr:P143 [] } .
}
}
Query found at
- https://www.wikidata.org/wiki/User:Jarekt/queries
- https://www.wikidata.org/wiki/Wikidata:Bot_requests/Archive/2017/09
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?birth")
v3("?dobstatement")
v1("?item"):::projected
v5("?provenance")
v2("?rdkid")
a1((" "))
a3((" "))
a2((" "))
c5(["9^^xsd:integer"]):::literal
v1 --"p:direct/P1472"--> a1
v1 --"p:direct/P650"--> v2
v1 --"p:P569"--> v3
a2 --"wikibase:timePrecision"--> c5
a2 --"wikibase:timeValue"--> v4
v3 --"p:statement/value/P569"--> a2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v3 --"prov:wasDerivedFrom"--> v5
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v5 --"p:reference/P143"--> a3
end
end