query-e39e3ec0a8c52fb16859880fa1c430fa
Bundesliga teams by number of seasons
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 ?team ?teamLabel (COUNT(?season) AS ?seasons) WHERE {
?season wdt:P31 wd:Q82595 .
?season wdt:P1923 ?team .
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
}
GROUP BY ?team ?teamLabel
ORDER BY DESC(?seasons)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?season"):::projected
v4("?seasons")
v3("?team"):::projected
c7(["de"]):::literal
c5(["bd:serviceParam"]):::iri
c2(["wd:Q82595"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P1923"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind1[/"count(?season)"/]
v2 --o bind1
bind1 --as--o v4