query-0f75de03e30d7890d35a9db2046b936a
title: Items with the most lexemes describing them SELECT ?item ?itemLabel (COUNT(DISTINCT ?sense) AS ?count) { ?sense wdt:P5137 ?item . OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } } GROUP BY ?item ?itemLabel ORDER BY DESC(?count) LIMIT 100
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#title: Items with the most lexemes describing them
SELECT ?item ?itemLabel (COUNT(DISTINCT ?sense) AS ?count) {
?sense wdt:P5137 ?item .
OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }
}
GROUP BY ?item ?itemLabel
ORDER BY DESC(?count)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count")
v4("?item"):::projected
v2("?itemLabel"):::projected
v3("?sense"):::projected
v3 --"wdt:P5137"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."rdfs:label".-> v2
end
bind1[/"count(?sense)"/]
v3 --o bind1
bind1 --as--o v5