query-6baf9d82d7f90b60a398141ea4d48501

rq turtle/ttl

TODO

Use at

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#>
# Given names of all people born in Armenia, on Wikidata
#defaultView:BubbleChart
SELECT ?givenName ?givenNameLabel ?count
WHERE
{
  {
    SELECT ?givenName (count(?item) as ?count)
    WHERE {
      ?item wdt:P19 ?place .
      ?place wdt:P17 wd:Q399 .
      ?item wdt:P735 ?givenName .
    }
    GROUP BY ?givenName
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count"):::projected v4("?givenName"):::projected v2("?item") v3("?place") c3(["wd:Q399"]):::iri c6(["bd:serviceParam"]):::iri c8(["en"]):::literal v2 --"wdt:P19"--> v3 v3 --"wdt:P17"--> c3 v2 --"wdt:P735"--> v4 bind1[/"count(?item)"/] v2 --o bind1 bind1 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end