query-849e9acb3cc09eee8adea9a2102c2f45
Trilotat
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?recipient ?recipientLabel (YEAR(?time) AS ?year)
WHERE
{
?recipient p:P166 ?statement .
?statement ps:P166 wd:Q832424 . # Wollaston Medal
OPTIONAL { ?statement pq:P585 ?time . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
ORDER BY ?time
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?recipient"):::projected
v3("?statement")
v1("?time"):::projected
v4("?year")
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q832424"]):::iri
v2 --"p:P166"--> v3
v3 --"p:statement/P166"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P585".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind0[/"year-from-dateTime(?time)"/]
v1 --o bind0
bind0 --as--o v4