Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
WP0 blocked users without category (logging)
by
Zhuyifei1999
This query is marked as a draft
This query has been published
by
Zhuyifei1999
.
Toggle Highlighting
SQL
USE commonswiki_p; SELECT log_title FROM logging_logindex WHERE log_type = 'block' AND log_action = 'block' AND log_comment REGEXP '[[:<:]](?:T129845|Z567|Z591|WP0|wikipedia (?:zero|0))[[:>:]]' AND NOT log_title REGEXP '^[[:digit:]]{1,3}.[[:digit:]]{1,3}.[[:digit:]]{1,3}.[[:digit:]]{1,3}(?:/[[:digit:]]{1,2})?$' AND NOT log_title IN ( SELECT page_title FROM page INNER JOIN categorylinks ON cl_from = page_id WHERE cl_type = "page" AND page_namespace = 2 AND cl_to IN ( SELECT * FROM ( SELECT 'Users_suspected_of_abusing_Wikipedia_Zero' AS catname UNION SELECT page_title AS catname FROM page INNER JOIN categorylinks ON cl_from = page_id WHERE cl_type = 'subcat' AND cl_to = 'Users_suspected_of_abusing_Wikipedia_Zero' ) wp0cats ) ) ;
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...