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 @months = 4; set @decrementby = @months * 100000000; select 1 from logging_logindex move where move.log_type = "move" and move.log_namespace=0 and move.log_title="John_Savile,_1st_Baron_Savile_(second_creation)" and move.log_timestamp < (select log_timestamp from logging where log_id=144062679) -- TODO Make this not mainspace-only and exists (select 1 from revision join page on rev_page=page_id where page_namespace=0 and page_title=REPLACE(REGEXP_REPLACE(move.log_params,".*4::target\";s:[0-9]+:\"(.*?)\";s:.*","\\1"),"_"," ") and rev_timestamp < IF(((select log_timestamp from logging where log_id=144062679) - @decrementby - 100000000) % 10000000000 > 1200000000, (select log_timestamp from logging where log_id=144062679) - @decrementby - 8800000000, (select log_timestamp from logging where log_id=144062679) - @decrementby))
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...