query-ea5af6c6e013dd9d454551f5351d9c84

rq turtle/ttl

Birth years of all Euro 2016 players

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>

SELECT ?year (COUNT(?year) AS ?count)
{
SELECT (YEAR(?birth) AS ?year) WHERE {
  ?team wdt:P31 wd:Q24199684 .
  ?team p:P710 ?playerSet . ?playerSet v:P710 ?player .
  ?player wdt:P569 ?birth
}
}
GROUP BY ?year
ORDER BY ?year

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?birth") v6("?count") v4("?player") v3("?playerSet") v2("?team") v6("?year"):::projected c2(["wd:Q24199684"]):::iri v2 --"p:direct/P31"--> c2 v2 --"p:P710"--> v3 v3 --"p:statement/P710"--> v4 v4 --"p:direct/P569"--> v5 bind0[/"year-from-dateTime(?birth)"/] v5 --o bind0 bind0 --as--o v6 bind2[/"count(?year)"/] v6 --o bind2 bind2 --as--o v6