query-518680fbc3dacb62cd00bce0d68d3bea
Returns the one award Brian Aldiss won where the work was named
Use at
- https://query.wikidata.org/sparql
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?entity ?desc (year(?date) as ?year){
wd:Q238702 p:P166 [ps:P166 ?entity ; pq:P585 ?date]
OPTIONAL { ?entity rdfs:label ?desc FILTER((LANG(?desc)) = "en") }
} ORDER BY ?year
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?date"):::projected
v2("?desc"):::projected
v3("?entity"):::projected
v5("?year")
a1((" "))
c4(["wd:Q238702"]):::iri
a1 --"p:statement/P166"--> v3
a1 --"p:qualifier/P585"--> v4
c4 --"p:P166"--> a1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v2
end
bind0[/"year-from-dateTime(?date)"/]
v4 --o bind0
bind0 --as--o v5