Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Pppery
.
Toggle Highlighting
SQL
-- set @thresh = NOW() - INTERVAL 6 MONTH; -- set @mwthresh = concat(YEAR(@thresh),LPAD(MONTH(@thresh),2,"0"),LPAD(DAY(@thresh),2,"0"),"00000"); set @months = 6; set @decrementby = @months * 100000000; select replace(concat("[[:{{subst:ns:",log_namespace,"}}:",replace(log_title,"_"," "),"]]"),":{{subst:ns:0}}:",":") as 'Page', (select actor_name from actor_logging where actor_id=log_actor) as "Deleting admin", comment_text as "Edit summary", log_timestamp as "Timestamp" from logging_logindex curdel join comment_logging on comment_id=log_comment_id where log_type="delete" and log_action="delete" and (comment_text like "%G13%") -- The modulo and subtraction of 8800000000 handle year wraparound properly since years don't have 100 months and exists (select 1 from archive where ar_namespace=log_namespace and ar_title=log_title and ar_timestamp > IF((log_timestamp - @decrementby - 100000000) % 10000000000 > 1200000000, log_timestamp - @decrementby - 8800000000, log_timestamp - @decrementby) + 2000000 -- 2 days of slop and not exists (select 1 from user_groups join actor_archive on actor_user=ug_user where actor_id=ar_actor and ug_group="bot") and ar_actor != (select actor_id from actor_archive where actor_name="Hey man im josh") and ar_actor != (select actor_id from actor_archive where actor_name="EN-Jungwon") -- and ar_timestamp < log_timestamp - 1000000 -- Exclude what looks like human taggings ) and log_timestamp like "202209%";
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...