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
ערן
.
Toggle Highlighting
SQL
use hewiki_p; select la.log_title, la.log_timestamp, lb.log_timestamp from logging la inner join logging lb on la.log_action=lb.log_action and la.log_type=lb.log_type and la.log_title=lb.log_title and la.log_namespace=lb.log_namespace where la.log_type='protect' and la.log_action='protect' and la.log_timestamp<lb.log_timestamp and la.log_timestamp>20180101000000 # any time in year 2018 and TIMESTAMPDIFF(DAY, la.log_timestamp,lb.log_timestamp)<7 # two protection in difference of less than a week and la.log_params like '%edit=autoconfirmed%' # first one is weak and lb.log_params like '%edit=autopatrol%' # second is stronger and la.log_namespace=0 #main NS group by la.log_title;
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...