query-145cf20a994a763c2e11e69e288b8843
Vous pouvez également écrire la requête plus efficacement en utilisant judicieusement des points virgule et crochets :
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel (year(?when) as ?year) ?winnerLabel ?score
WHERE
{
?item wdt:P31 wd:Q57776091 ; # l'élément est une Sweet Adelines International chorus competition
wdt:P585 ?when ; # qui possède une date
p:P1346 [ps:P1346 ?winner ; pq:P1351 ?score] .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by desc(?year)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v5("?score"):::projected
v3("?when"):::projected
v4("?winner")
v6("?year")
a1((" "))
c2(["wd:Q57776091"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"p:direct/P31"--> c2
v2 --"p:direct/P585"--> v3
a1 --"p:statement/P1346"--> v4
a1 --"p:qualifier/P1351"--> v5
v2 --"p:P1346"--> a1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind0[/"year-from-dateTime(?when)"/]
v3 --o bind0
bind0 --as--o v6