query-feb131b9686e2c25eb549be3cca7b035
First name of Indians, 1937 items@27 JULY 2020 SELECT ?givenName ?givenNameLabel (COUNT(DISTINCT ?item) AS ?count) WHERE { ?item wdt:P31 wd:Q5. ?item wdt:P27 wd:Q668 . ?item wdt:P735 ?givenName . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?givenName ?givenNameLabel ORDER BY DESC(?count)
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#>
#First name of Indians, 1937 items@27 JULY 2020
SELECT ?givenName ?givenNameLabel (COUNT(DISTINCT ?item) AS ?count)
WHERE {
?item wdt:P31 wd:Q5.
?item wdt:P27 wd:Q668 .
?item wdt:P735 ?givenName .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?givenName ?givenNameLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v3("?givenName"):::projected
v2("?item"):::projected
c7(["bd:serviceParam"]):::iri
c4(["wd:Q668"]):::iri
c2(["wd:Q5"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wdt:P27"--> c4
v2 --"wdt:P735"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v4