query-694f9ece02a2d9c1bf77d977873c67be

rq turtle/ttl

top 100 given names

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?value ?valueLabel ?ct ?sampleitem ?sampleitemLabel
WHERE
{
  {
    SELECT ?value (count(*) as ?ct) (SAMPLE(?item) as ?sampleitem)
    WHERE
    {
      ?item wdt:P735 ?value
    }
    GROUP BY ?value
    ORDER BY DESC(?ct)
    LIMIT 100
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
ORDER BY DESC(?ct) ASC(?value)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?ct"):::projected v3("?item") v4("?sampleitem"):::projected v2("?value"):::projected c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal v3 --"wdt:P735"--> v2 bind2[/"count(*)"/] bind2 --as--o v4 bind3[/"sample(?item)"/] v3 --o bind3 bind3 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end