query-3700063f52d29bb9335d9ab610d802cd

rq turtle/ttl

List Historic Westside Legacy Park HonoreesGenerate list of Legacy Park honorees

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?honoree ?honoreeLabel ?honoreeDescription (year(?c) AS ?cohort)  
WHERE
{
  ?honoree wdt:P166 wd:Q105719274 ;
             p:P166 ?statement ;       
     OPTIONAL {?statement pq:P585 ?c . }
     SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
     FILTER("2021-00-00"^^xsd:date <= ?c && ?c < "2099-00-00"^^xsd:dat)
}ORDER BY ?honoreeLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?c"):::projected v5("?cohort") v3("?honoree"):::projected v1("?honoreeLabel"):::projected v4("?statement") c8(["bd:serviceParam"]):::iri c10(["en"]):::literal c4(["wd:Q105719274"]):::iri f0[["'2021-00-00^^xsd:date' <= ?c?c < s2099-00-00^^<http://www.w3.org/2001/XMLSchema#dat>'"]] f0 --> v2 v3 --"p:direct/P166"--> c4 v3 --"p:P166"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:qualifier/P585".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind1[/"year-from-dateTime(?c)"/] v2 --o bind1 bind1 --as--o v5