Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
by
Liz
This query is marked as a draft
This query has been published
by
Liz
.
From main space, draft space, or user space. To do: -Look at removing entries that redirect into project space
Toggle Highlighting
SQL
SELECT p.page_title, rd_namespace, rd_title, -- 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 ), ' ', '_') AND p.page_title NOT LIKE '%/%' /* 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 LIKE 'Language_learning_centre%' 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 p.page_id not in (select tl_from from templatelinks where tl_target_id in ( select lt_id from linktarget where lt_namespace = 10 and lt_title in ('Essay', 'Information_page', 'Nutshell', 'Shortcut', 'Historical') )) left join redirect on rd_from = p.page_id and p.page_is_redirect = 1 -- 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 rd_namespace is null or rd_namespace not in (-1, 4, 12) GROUP BY p.page_title 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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...