query-f6d6d20d39dae86f38620720611088f0
Русские граждане с именем на латинице SELECT ?name ?nameLabel (COUNT(?person) AS ?cnt) WHERE { ?person wdt:P31 wd:Q5; wdt:P27 wd:Q159; wdt:P735 ?name. ?name wdt:P282 wd:Q8229. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?name ?nameLabel ORDER BY DESC(?cnt)
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 ?name ?nameLabel (COUNT(?person) AS ?cnt) WHERE
{
?person wdt:P31 wd:Q5;
wdt:P27 wd:Q159;
wdt:P735 ?name.
?name wdt:P282 wd:Q8229.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?name ?nameLabel
ORDER BY DESC(?cnt)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?cnt")
v3("?name"):::projected
v2("?person"):::projected
c4(["wd:Q159"]):::iri
c9(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c7(["wd:Q8229"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wdt:P27"--> c4
v2 --"wdt:P735"--> v3
v3 --"wdt:P282"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind1[/"count(?person)"/]
v2 --o bind1
bind1 --as--o v4