query-397b37ca7773fa8ca271d63b5beeaaeb
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?month (count(?item) as ?count)
WHERE
{
# ?item wdt:P166/wdt:P361 wd:Q19020. # winner of an Oscar (received an award / which is part of / academy awards)
# ?item wdt:P166/wdt:P279* wd:Q7191. # winner of a Nobel Prize (received an award which is / or which is a subclass of / Nobel Prize)
# ?item wdt:P106 wd:Q11631. # occupation=astronaut
?item wdt:P106 wd:Q82955; wdt:P27 wd:Q29 . # occupation=politician, country=spain
?item wdt:P569 ?dob.
BIND(month(?dob) as ?month)
} group by ?month order by ?month
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v3("?dob")
v2("?item"):::projected
v4("?month"):::projected
c4(["wd:Q29"]):::iri
c2(["wd:Q82955"]):::iri
v2 --"wdt:P106"--> c2
v2 --"wdt:P27"--> c4
v2 --"wdt:P569"--> v3
bind0[/"month-from-dateTime(?dob)"/]
v3 --o bind0
bind0 --as--o v4
bind2[/"count(?item)"/]
v2 --o bind2
bind2 --as--o v4