query-ff3c1a0a155f4bb302b88be588ca566c

rq turtle/ttl

Number of Bundesliga matches 08:40, 27 September 2019 (UTC)) talk (Steak). (Q47787804)2018–19 Bundesliga : (P179)part of the series and (Q687048)1963–64 Fußball-Bundesliga : (P179)part of the series (individually for each season between (Q82595)Bundesliga of (Q27020041)season in each (Q16466010)association football match I am looking for the number of

Use at

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 ?season ?seasonLabel (COUNT(?match) AS ?linked_matches) WHERE {
  ?season wdt:P3450 wd:Q82595 .
  OPTIONAL {
    ?match wdt:P179 ?season; wdt:P31 wd:Q16466010 .
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
} GROUP BY ?season ?seasonLabel ORDER BY ASC(?seasonLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?linked_matches") v3("?match"):::projected v2("?season"):::projected v1("?seasonLabel"):::projected c7(["bd:serviceParam"]):::iri c2(["wd:Q82595"]):::iri c9(["en"]):::literal c5(["wd:Q16466010"]):::iri v2 --"wdt:P3450"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P179".-> v2 v3 --"wdt:P31"--> c5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind1[/"count(?match)"/] v3 --o bind1 bind1 --as--o v4