query-8900cca9e00f110af8a27529f2033289
(2) It works also as
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?m ?monthnameLabel
{
VALUES ?item { wd:Q42 }
?item wdt:P569 ?date .
?monthname wdt:P2837 ?m
FILTER(MONTH(?date)=?m)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?date")
v3("?item"):::projected
v2("?m"):::projected
v4("?monthname")
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
f0[["month-from-dateTime(?date) = ?m"]]
f0 --> v1
f0 --> v2
bind1[/VALUES ?item/]
bind1-->v3
bind10(["wd:Q42"])
bind10 --> bind1
v3 --"wdt:P569"--> v1
v4 --"wdt:P2837"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end