query-f1c7c69fc99b6c8eb66bb78c19f05520
TODO
Use at
- https://query.wikidata.org/sparql
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/>
SELECT DISTINCT ?item ?startdate WHERE{
?item p:P31 ?node .
?node ps:P31 wd:Q14839548
{
?node pq:P580 ?startdate .
FILTER (day(?startdate) != 31)
} UNION {
?node pq:P580 ?startdate .
FILTER (month(?startdate) != 12)
} UNION {
?node pq:P580 ?startdate .
FILTER (year(?startdate) not in (1990, 1995, 2000, 2005, 2010, 2015))
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?node")
v3("?startdate"):::projected
c3(["wd:Q14839548"]):::iri
v1 --"p:P31"--> v2
v2 --"p:statement/P31"--> c3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
f0[["year-from-dateTime(?startdate) != '1990^^xsd:integer'year-from-dateTime(?startdate) != '1995^^xsd:integer'year-from-dateTime(?startdate) != '2000^^xsd:integer'year-from-dateTime(?startdate) != '2005^^xsd:integer'year-from-dateTime(?startdate) != '2010^^xsd:integer'year-from-dateTime(?startdate) != '2015^^xsd:integer'"]]
f0 --> v3
v2 --"p:qualifier/P580"--> v3
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
f1[["month-from-dateTime(?startdate) != '12^^xsd:integer'"]]
f1 --> v3
v2 --"p:qualifier/P580"--> v3
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
f2[["day-from-dateTime(?startdate) != '31^^xsd:integer'"]]
f2 --> v3
v2 --"p:qualifier/P580"--> v3
end
union0r <== or ==> union0l
end