query-604ffe90a8fbf5e1abeb9eb5082a123e
Malaysians by given name
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 ?nameLabel ?number_of_people WHERE {
{
SELECT ?name (COUNT(DISTINCT ?person) AS ?number_of_people) WHERE {
?person wdt:P31 wd:Q5;
wdt:P19 ?pob;
wdt:P735 ?name.
?pob wdt:P17 wd:Q833.
}
GROUP BY ?name
ORDER BY DESC (?number_of_people)
LIMIT 200
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC (?number_of_people)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?name")
v5("?number_of_people"):::projected
v2("?person")
v3("?pob")
c8(["bd:serviceParam"]):::iri
c6(["wd:Q833"]):::iri
c2(["wd:Q5"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wdt:P19"--> v3
v2 --"wdt:P735"--> v4
v3 --"wdt:P17"--> c6
bind1[/"count(?person)"/]
v2 --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end