query-ee1bc0baeb5c97cc9c1aac1edb4edd1d
Analysis of the geographical distribution of artists in English Wikipedia's list of sculptors queries by User:PAC2Inspired by
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
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:BarChart
#title:Continents of individuals mentioned in "List of sculptors"
SELECT ?cont ?contLabel (COUNT(?item) AS ?count)
WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "en.wikipedia.org";
wikibase:api "Generator";
mwapi:generator "links";
mwapi:titles "List of sculptors".
?item wikibase:apiOutputItem mwapi:item.
}
FILTER BOUND (?item)
?item wdt:P31 wd:Q5 . # restrict to human beings
?item wdt:P27/wdt:P30 ?cont . # continent of country of citizenship
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?cont ?contLabel
ORDER BY ?contLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?cont"):::projected
v1("?contLabel"):::projected
v4("?count")
v2("?item"):::projected
a1((" "))
c10(["List of sculptors"]):::literal
c12(["mwapi:item"]):::iri
c4(["en.wikipedia.org"]):::literal
c2(["bd:serviceParam"]):::iri
c14(["wd:Q5"]):::iri
c19(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c8(["links"]):::literal
c6(["Generator"]):::literal
f0[["bound(?item)"]]
f0 --> v2
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c2 --"mwapi:endpoint"--> c4
c2 --"mwapi:api"--> c6
c2 --"mwapi:generator"--> c8
c2 --"mwapi:titles"--> c10
v2 --"mwapi:apiOutputItem"--> c12
end
v2 --"wdt:P31"--> c14
v2 --"wdt:P27"--> a1
a1 --"wdt:P30"--> v3
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c2 --"mwapi:language"--> c19
end
bind2[/"count(?item)"/]
v2 --o bind2
bind2 --as--o v4