query-295b83c95a03996f6059251756c815dd
People born on this day, generally
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?subject ?subjectLabel ?subjectDescription (year(?date) as ?year) WHERE {
?subject p:P569/psv:P569 ?date_node . # node for date of birth
?date_node wikibase:timePrecision "11"^^xsd:integer . # date precision = day
?date_node wikibase:timeValue ?date .
FILTER (day(?date) = day(now())) . # day of birth date is day of current date
FILTER (month(?date) = month(now())) . # month of birth date is month of current date
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?date
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?date"):::projected
v3("?date_node")
v2("?subject"):::projected
v4("?year")
a1((" "))
c4(["11^^xsd:integer"]):::literal
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["month-from-dateTime(?date) = month-from-dateTime(NOW())"]]
f0 --> v1
f1[["day-from-dateTime(?date) = day-from-dateTime(NOW())"]]
f1 --> v1
v2 --"p:P569"--> a1
a1 --"p:statement/value/P569"--> v3
v3 --"wikibase:timePrecision"--> c4
v3 --"wikibase:timeValue"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind2[/"year-from-dateTime(?date)"/]
v1 --o bind2
bind2 --as--o v4