query-0c381fa3bf798930fdcc4b7a2a14ed93

rq turtle/ttl

TODO

Use at

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 ?year ?laurate ?laurateLabel (?p6208 AS ?award_rationale) {
  ?laurate p:P166 ?p166stm .
  ?p166stm ps:P166 wd:Q37922; pq:P585 ?time .
  BIND(YEAR(?time) AS ?year)
  OPTIONAL { ?p166stm pq:P6208 ?p6208 . FILTER(LANG(?p6208)='en') }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?year ?laurate ?laurateLabel ?p6208 
ORDER BY ?year ?laurateLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?award_rationale") v4("?laurate"):::projected v2("?laurateLabel"):::projected v5("?p166stm") v3("?p6208"):::projected v6("?time") v7("?year"):::projected c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q37922"]):::iri v4 --"p:P166"--> v5 v5 --"p:statement/P166"--> c4 v5 --"p:qualifier/P585"--> v6 bind0[/"year-from-dateTime(?time)"/] v6 --o bind0 bind0 --as--o v7 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:qualifier/P6208".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind1[/"?p6208"/] v3 --o bind1 bind1 --as--o v7