query-d81659187a38596d46ca9fac993bed94
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:BubbleChart
SELECT (COUNT(?author) as ?count) ?provinceLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,en". }
?liburu wdt:P31 wd:Q571.
?liburu wdt:P364 wd:Q8752.
?liburu wdt:P50 ?author.
?author wdt:P19 ?birthplace.
?birthplace wdt:P131* ?province.
{?province wdt:P31 wd:Q162620.}
union
{?province wdt:P31 wd:Q6465}
}
GROUP by ?provinceLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?author"):::projected
v3("?birthplace")
v5("?count")
v1("?liburu")
v4("?province")
c4(["eu,en"]):::literal
c12(["wd:Q162620"]):::iri
c2(["bd:serviceParam"]):::iri
c8(["wd:Q8752"]):::iri
c13(["wd:Q6465"]):::iri
c6(["wd:Q571"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P31"--> c6
v1 --"wdt:P364"--> c8
v1 --"wdt:P50"--> v2
v2 --"wdt:P19"--> v3
v3 --"wdt:P131"--> v4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P31"--> c13
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P31"--> c12
end
union0r <== or ==> union0l
end
bind1[/"count(?author)"/]
v2 --o bind1
bind1 --as--o v5