query-96d7e224c9f06fbebf7d32f986df6579
Winners
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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#>
PREFIX target: <http://www.wikidata.org/entity/Q6053150>
SELECT
?winner
(CONCAT("#work/", SUBSTR(STR(?winner), 32)) AS ?winnerUrl)
?winnerLabel
?role ?roleLabel
?event ?eventLabel
(CONCAT("#scientificevent/", SUBSTR(STR(?event), 32)) AS ?eventUrl)
WHERE {
?event wdt:P179 target: ;
p:P1346 ?winner_statement .
?winner_statement ps:P1346 ?winner ;
pq:P3831 ?role .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?event"):::projected
v6("?eventUrl")
v4("?role"):::projected
v3("?winner"):::projected
v5("?winnerUrl")
v2("?winner_statement")
c7(["bd:serviceParam"]):::iri
c2([http://www.wikidata.org/entity/Q6053150]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P179"--> c2
v1 --"p:P1346"--> v2
v2 --"p:statement/P1346"--> v3
v2 --"p:qualifier/P3831"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind0[/"concat('#work/',substring(str(?winner),'32^^xsd:integer'))"/]
v3 --o bind0
bind0 --as--o v5
bind1[/"concat('#scientificevent/',substring(str(?event),'32^^xsd:integer'))"/]
v1 --o bind1
bind1 --as--o v6