query-13f004e696c1cfefead6c92dab9951f4
Characters with the most appearances SELECT ?value ?valueLabel ?ct ?sampleitem ?sampleitemLabel WHERE { { SELECT ?value (count(*) as ?ct) (SAMPLE(?item) as ?sampleitem) WHERE { ?item wdt:P674 ?value } GROUP BY ?value ORDER BY DESC(?ct) } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } } ORDER BY DESC(?ct) ASC(?value)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Characters with the most appearances
SELECT ?value ?valueLabel ?ct ?sampleitem ?sampleitemLabel
WHERE
{
{
SELECT ?value (count(*) as ?ct) (SAMPLE(?item) as ?sampleitem)
WHERE
{
?item wdt:P674 ?value
}
GROUP BY ?value
ORDER BY DESC(?ct)
}
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:P674"--> 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