query-d4d7df03ac531d3d603f062a5dda1eb9
Birthplaces
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#>
# Places in Slovenia by number of notable people born there.
#defaultView:BubbleChart
SELECT ?place ?placeLabel ?count
WHERE
{
{
SELECT ?place (count(?item) as ?count)
WHERE
{
?item wdt:P19 ?place .
?place wdt:P17 wd:Q215 .
}
GROUP BY ?place
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count"):::projected
v2("?item")
v3("?place"):::projected
c3(["wd:Q215"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
v2 --"wdt:P19"--> v3
v3 --"wdt:P17"--> c3
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end