query-de6cce93b6c0a37f75d0786288c113ba
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT (COUNT(DISTINCT ?award) AS ?count) WHERE {
wd:Q44578 wdt:P166 ?award.
?award (wdt:P31|wdt:P361)+ wd:Q19020. # awards currently use P31 but I could imagine that changing in the future
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?award"):::projected
v2("?count")
c4(["wd:Q19020"]):::iri
c1(["wd:Q44578"]):::iri
c1 --"wdt:P166"--> v1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P361"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c4
end
union0r <== or ==> union0l
end
bind1[/"count(?award)"/]
v1 --o bind1
bind1 --as--o v2