Fork of Find draftifications of old articles by Þjarkur
This query is marked as a draft This query has been published by Cryptic.

SQL

AخA
 
/* Find draftifications of old articles */
SELECT log_params
FROM logging_logindex
JOIN page 
  ON log_title = page.page_title
  AND page.page_namespace = 118
JOIN
  (
    SELECT rev_page, MIN(rev_timestamp) as page_created_at
    FROM revision
    GROUP BY rev_page
  ) AS rev
  ON rev.rev_page = page.page_id
WHERE log_type = 'move'
  AND log_namespace = 0
  AND page.page_is_redirect = 0
  AND rev.page_created_at < 20191200000000
  AND log_params LIKE '%Draft:%'
ORDER BY log_timestamp DESC
LIMIT 30;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...