query-0259007efa6b4b7f937ba80bee127db2
Remove statement with Gregorian date earlier than 1584 (Q26961029) (qualifier deletion)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?item ?property (YEAR(?year) as ?yr)
{
?a pq:P31 wd:Q26961029 .
?item ?p ?a .
?a ?psv ?x .
?x wikibase:timeValue ?year .
?x wikibase:timePrecision 7 .
?x wikibase:timeCalendarModel wd:Q1985727 .
?property wikibase:statementValue ?psv .
?property wikibase:claim ?p .
}
LIMIT 15704
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?a")
v2("?item"):::projected
v3("?p")
v7("?property"):::projected
v4("?psv")
v5("?x")
v6("?year"):::projected
v8("?yr")
c7(["wd:Q1985727"]):::iri
c5(["7^^xsd:integer"]):::literal
c2(["wd:Q26961029"]):::iri
v1 --"pq:P31"--> c2
v2 -->v3--> v1
v1 -->v4--> v5
v5 --"wikibase:timeValue"--> v6
v5 --"wikibase:timePrecision"--> c5
v5 --"wikibase:timeCalendarModel"--> c7
v7 --"wikibase:statementValue"--> v4
v7 --"wikibase:claim"--> v3
bind0[/"year-from-dateTime(?year)"/]
v6 --o bind0
bind0 --as--o v8