query-8b8c980b8ed59a1f51d7928857b0d5a3
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#>
SELECT ?surname ?surnameLabel (COUNT(?item) AS ?count)
WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "ru,en". }
?item wdt:P31 wd:Q5.
?item wdt:P734 ?surname.
# ?item wdt:P735 ?surname. # имя
?surname wdt:P31 wd:Q4167410
}
GROUP BY ?surname ?surnameLabel
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")
v2("?item"):::projected
v3("?surname"):::projected
c2(["bd:serviceParam"]):::iri
c8(["wd:Q4167410"]):::iri
c6(["wd:Q5"]):::iri
c4(["ru,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v2 --"wdt:P31"--> c6
v2 --"wdt:P734"--> v3
v3 --"wdt:P31"--> c8
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v4