query-fc97cf85c95b6c616f64f1ea909a71b8
Polskie nazwiska TOP 100
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#>
SELECT ?surname ?surnameLabel ?count WHERE {
{
SELECT ?surname (COUNT(?person) AS ?count) WHERE {
?person wdt:P31 wd:Q5;
wdt:P27 wd:Q36;
wdt:P734 ?surname.
}
GROUP BY ?surname
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en", "pl". }
}
ORDER BY DESC(?count)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count"):::projected
v2("?person")
v3("?surname"):::projected
c7(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c9(["en"]):::literal
c10(["pl"]):::literal
c4(["wd:Q36"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P27"--> c4
v2 --"wdt:P734"--> v3
bind1[/"count(?person)"/]
v2 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
c7 --"wikibase:language"--> c10
end