query-7228cf3ee0211abd1bc484718145e309
Propertiesinstance of (P31)image (P18)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 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 ?personLabel ?image ?year
WHERE {
?person wdt:P31 wd:Q5 ;
p:P166 [ps:P166 wd:Q8024208; pq:P585 ?year].
OPTIONAL {?person wdt:P18 ?image}.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
FILTER(YEAR(?year) = 2018)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?image"):::projected
v2("?person"):::projected
v1("?year"):::projected
a1((" "))
c5(["wd:Q8024208"]):::iri
c10(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c12(["en"]):::literal
f0[["year-from-dateTime(?year) = '2018^^xsd:integer'"]]
f0 --> v1
v2 --"p:direct/P31"--> c3
a1 --"p:statement/P166"--> c5
a1 --"p:qualifier/P585"--> v1
v2 --"p:P166"--> a1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P18".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end