query-9eae3461685ab100f4011f4fa74d1015
...aggregated
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#>
SELECT DISTINCT ?number1 (count(?number1) as ?number2) WHERE {
{
SELECT DISTINCT ?w (count(DISTINCT ?p) as ?number1) WHERE {
?p wdt:P31 wd:Q98270496 .
?p wdt:P1416 ?w .
} GROUP BY ?w ?wLabel
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" . }
} GROUP BY ?number1
ORDER BY DESC(?number1)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?number1"):::projected
v4("?number2")
v2("?p")
v3("?w")
c5(["bd:serviceParam"]):::iri
c7(["de,en"]):::literal
c2(["wd:Q98270496"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P1416"--> v3
bind1[/"count(?p)"/]
v2 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind3[/"count(?number1)"/]
v4 --o bind3
bind3 --as--o v4