Fork of Pages mistakenly moved to project space by Liz
This query is marked as a draft This query has been published by Liz.

SQL

AخA
 
SELECT CONCAT('https://en.wikipedia.org/w/index.php?title=Wikipedia:', p.page_title, CASE WHEN p.page_is_redirect THEN '&redirect=no' ELSE '' END) AS 'Page',
CASE WHEN p.page_is_redirect THEN 'Yes' ELSE 'No' END AS 'Is redirect?',
-- u.user_name AS 'Moving user',
-- u.user_editcount 'Edit count',
TIMESTAMP(MAX(l.log_timestamp)) AS 'Moved timestamp'
FROM logging_logindex l
INNER JOIN page p ON p.page_namespace = 4 AND p.page_title = REPLACE(SUBSTRING(l.log_params, LOCATE('Wikipedia:', l.log_params) + 10, LOCATE('"', l.log_params, LOCATE('Wikipedia:', l.log_params)) - LOCATE('Wikipedia:', l.log_params) - 10), ' ', '_')
-- INNER JOIN actor_user a ON l.log_actor = a.actor_id
-- LEFT JOIN user u ON a.actor_user = u.user_id
WHERE l.log_type = 'move'
AND l.log_namespace IN (0, 2, 118)
AND l.log_params LIKE '%Wikipedia:%'
-- AND (u.user_editcount < 1500 OR u.user_editcount IS NULL)
AND p.page_title NOT LIKE '%Meetup%'
AND p.page_title NOT LIKE '%Long-term_Abuse%'
AND p.page_title NOT LIKE '%Wikiproject%' collate utf8_general_ci
AND p.page_title NOT LIKE '%Wikipedia%'
AND p.page_title NOT LIKE '%Articles\_for\_%'
AND p.page_title NOT LIKE 'Notability%'
AND p.page_title NOT LIKE 'GLAM%'
AND p.page_title NOT LIKE 'Article_Incubator%'
AND p.page_title NOT LIKE 'Architects_Build_Wiki%'
AND p.page_title NOT LIKE 'Contents%'
AND p.page_title NOT LIKE 'New_pages_patrol%'
AND p.page_title NOT LIKE 'Request%'
AND p.page_title NOT LIKE 'Books%'
AND p.page_title NOT LIKE 'TLAs\_from\_%'
AND p.page_title NOT LIKE 'Userboxes%'
AND p.page_title NOT LIKE 'April\_Fools%'
AND p.page_title NOT LIKE 'School_and_university_projects%'
-- AND p.page_title NOT IN ('DJ', 'Short_popular_vital_articles', 'Sign_up', 'Hypocritic_Oath', 'Education', 'Eleventy-billion_pool_(1)', 'WikiBee', 'Princeton_University_Edit-a-thon_Three', 'Authority_control_integration_project', 'WikiGap_2.0_in_Sudan', 'SWASTHA/Methodology', 'Pages_with_neutrality_problems', 'Deletion_Reform', 'STEM', 'Healthcare_science', 'MEETUP/Lincoln,_MA', 'Art_and_Feminism_@SAAM', 'Gun_use', 'CRUK_Women_in_Cancer_Research_Editathon', 'Workshop/DGCU_Workshop_2', 'WikiConference_/_San_Diego_/_Indigenous_People\'s_Day_2016', 'The_Great_Society_Congress', 'University_of_Dayton_Libraries/Edit-a-thon_1', 'Special_notability_guideline_RFC:Sports', 'LMU_Library_Edit-a-thon_2019', '2ndGAFDEW', 'WiR/Global_Systems_Institute')
and page_id not in (select rd_from from redirect where rd_namespace in (4, 12))
and page_id not in (select tl_from from templatelinks where tl_target_id in (
  select lt_id from linktarget where lt_title in ('Essay', 'Information_page') and lt_namespace = 10
))
GROUP BY CONCAT('https://en.wikipedia.org/w/index.php?title=Wikipedia:', p.page_title, CASE WHEN p.page_is_redirect THEN '&redirect=no' ELSE '' END), p.page_is_redirect
ORDER BY p.page_is_redirect, MAX(l.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.
All SQL code is licensed under CC0 License.

Checking query status...