query-b49fa44156dd4de28dfac123c3b8e8f2
People married on Christmas Day
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?dom
WHERE
{
?item wdt:P31 wd:Q5.
?item p:P26 [ # date of marriage is the start time (P580) qualifier to spouse (P26)
pq:P580 ?dom
]
FILTER (DAY(?dom) = 25 && MONTH(?dom) = 12)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?dom
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dom"):::projected
v2("?item"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c4(["wd:Q5"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["day-from-dateTime(?dom) = '25^^xsd:integer'month-from-dateTime(?dom) = '12^^xsd:integer'"]]
f0 --> v1
v2 --"p:direct/P31"--> c4
a1 --"p:qualifier/P580"--> v1
v2 --"p:P26"--> a1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end