query-6093bc7cd495ca9f49fc3425021e30cd
TODO
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 ?edition ?editionLabel ?year ?event ?eventLabel ?winner ?winnerLabel WHERE {
?event wdt:P31 wd:Q46190676 ;
wdt:P2094 wd:Q16893072 ;
wdt:P361 ?edition .
?edition wdt:P31 wd:Q279800 ;
wdt:P585 ?pointintime.
BIND(YEAR(?pointintime) AS ?year)
OPTIONAL{?event wdt:P1346 ?winner .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ASC(?year)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?edition"):::projected
v2("?event"):::projected
v4("?pointintime")
v5("?winner"):::projected
v5("?year"):::projected
c10(["bd:serviceParam"]):::iri
c2(["wd:Q46190676"]):::iri
c6(["wd:Q279800"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q16893072"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P2094"--> c4
v2 --"wdt:P361"--> v3
v3 --"wdt:P31"--> c6
v3 --"wdt:P585"--> v4
bind0[/"year-from-dateTime(?pointintime)"/]
v4 --o bind0
bind0 --as--o v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1346".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end