query-5aae59c5b87ec9201496732bdc678c03

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 ?entity ?entityLabel (YEAR(?date) as ?year) ?workLabel
{
  wd:Q238702 p:P166 ?award_statement .
  ?award_statement ps:P166 ?entity .
  OPTIONAL { ?award_statement pq:P585 ?date . }
  OPTIONAL { ?award_statement pq:P1686 ?work . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
ORDER BY ?year

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?award_statement") v4("?date"):::projected v3("?entity"):::projected v5("?work") v6("?year") c1(["wd:Q238702"]):::iri c7(["bd:serviceParam"]):::iri c9(["en"]):::literal c1 --"p:P166"--> v2 v2 --"p:statement/P166"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P585".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P1686".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind0[/"year-from-dateTime(?date)"/] v4 --o bind0 bind0 --as--o v6