query-6d29b0e033b5ec0b2cb0587e86c31e38
Propertiesinstance of (P31)subclass of (P279)award received (P166)point in time (P585)
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 schema: <http://schema.org/>
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 ?person ?awardLabel ?personLabel WHERE {
?award wdt:P31/wdt:P279+ wd:Q618779. # award or subtype
?person p:P166 ?statement. # winner of award
?statement ps:P166 ?award;
pq:P585 ?time # point in time when awarded
FILTER (YEAR(?time)=2016)
MINUS {?wp schema:about ?person; FILTER CONTAINS(STR(?wp),"wikipedia") } # no Wikipedia article
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;
v2("?award")
v3("?person"):::projected
v4("?statement")
v1("?time")
v5("?wp")
a1((" "))
c4(["wd:Q618779"]):::iri
c11(["bd:serviceParam"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["year-from-dateTime(?time) = '2016^^xsd:integer'"]]
f0 --> v1
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c4
v3 --"p:P166"--> v4
v4 --"p:statement/P166"--> v2
v4 --"p:qualifier/P585"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
f2[["contains(str(?wp),'wikipedia')"]]
f2 --> v5
v5 --"schema:about"--> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end