query-fcc79edccc6d4ff2678bbfec74f0c0d7
Propertiesdate of birth (P569)stated in (P248)publication date (P577)registration district (P5564)section, verse, paragraph, or clause (P958)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?person ?personLabel ?dateOfBirth ?statedInLabel ?regDistrictLabel (YEAR(?pubDate) AS ?pubYear) ?regNum
WHERE
{
?person p:P569 ?dateOfBirthStatement .
?dateOfBirthStatement ps:P569 ?dateOfBirth .
?dateOfBirthStatement prov:wasDerivedFrom ?refnode .
?refnode pr:P248 ?statedIn .
?refnode pr:P577 ?pubDate .
?refnode pr:P5564 ?regDistrict .
OPTIONAL{ ?refnode pr:P958 ?regNum } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?dateOfBirth"):::projected
v2("?dateOfBirthStatement")
v1("?person"):::projected
v6("?pubDate"):::projected
v9("?pubYear")
v4("?refnode")
v7("?regDistrict")
v8("?regNum"):::projected
v5("?statedIn")
c9(["bd:serviceParam"]):::iri
c11(["en"]):::literal
v1 --"p:P569"--> v2
v2 --"p:statement/P569"--> v3
v2 --"prov:wasDerivedFrom"--> v4
v4 --"p:reference/P248"--> v5
v4 --"p:reference/P577"--> v6
v4 --"p:reference/P5564"--> v7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:reference/P958".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind0[/"year-from-dateTime(?pubDate)"/]
v6 --o bind0
bind0 --as--o v9