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
NightWolf1223
.
Toggle Highlighting
SQL
select log_title as "Page", (select actor_name from actor_logging where actor_id=log_actor) as "Deleting admin", comment_text as "Edit summary", DATE_FORMAT(log_timestamp, '%Y-%m-%d %H:%i') as "Timestamp" from logging_logindex join comment_logging on comment_id=log_comment_id where log_type="delete" and log_action="delete" and (comment_text not like "%[WP:CSD%" and comment_text not regexp "\\[\\[WP:[GARX][0-9]{1,2}.*" and comment_text not regexp "^\\[\\[(Wikipedia{{!}}WP):(Articles[ _]for[ _]deletion{{!}}Redirects[ _]for[ _]discussion).*" and comment_text not like "_er outcome of [[WP:RFD]]" -- Odd format used by BD2412 and comment_text not regexp "Expired ?\\[\\[WP:PROD{{!}}PROD\\]\\]%" and comment_text not like "Multiple reasons: speedy deletion criteria%" and comment_text not like "Listed at [[Wikipedia:Copyright problems]] for over seven days%" -- MER_C's format and comment_text not like "%isted at [[WP:CP]]%" -- Premeditated Chaos' format and comment_text not like "%BLPPROD%" and comment_text not regexp ".*[Gg][35].*" -- these tend to use odd formats, so exclude them and comment_text not regexp "^(CSD )?[GARXgarx][0-9]{1,2}(${{!}}[.,/])?" -- exclude cases containing just a code, or a code followed -- by an explanation with a comma, period or slash. I deliberately don't exclude just [GARgar][0-9]{1,2} as that's -- too broad and risks too many false negatives ) and not exists (select 1 from page where page_namespace=0 and page_title=log_title) and exists (select 1 from archive where ar_namespace=0 and ar_title=log_title and ar_timestamp < log_timestamp-1000000) and not exists (select 1 from page where page_namespace=0 and page_title=log_title) -- Exclude mass deletions of pages created by socks and exists (select 1 from archive where ar_namespace=0 and ar_title=log_title and ar_timestamp < log_timestamp-1000000) and not (comment_text like "%Mass deletion%" and exists ( select comment_text from actor_archive join archive on ar_actor=actor_id join ipblocks on ipb_user=actor_user join comment_ipblocks on comment_id=ipb_reason_id where ar_namespace=0 and ar_title=log_title and ar_parent_id=0 and (comment_text like "%Sockpuppet%investigations%" or comment_text like "%multiple%accounts%" or comment_text like "%heckuser%" or comment_text like "%ock%puppetry%" or comment_text like "%ong%term%abuse") )) and log_namespace=0 and log_timestamp >= DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -1 MONTH), '%Y%m%d%H%i%s') order by log_timestamp desc;
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...