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
Mr. Stradivarius
.
Toggle Highlighting
SQL
USE enwiki_p; SELECT log_params AS title, page_is_redirect AS is_redirect, user_name EXISTS (SELECT 1 FROM user_groups WHERE ug_user = log_user LIMIT 1 ) AS mover_has_extended_perms, log_comment FROM logging INNER JOIN page ON SUBSTRING(log_params, 11) = page_title -- Trim first 10 characters (hopefully "Wikipedia:") from log_params INNER JOIN user ON log_user = user_id WHERE page_namespace = 4 -- Target is in the Wikipedia namespace AND log_params LIKE 'Wikipedia:%' -- Need to check this because of the way we joined the tables AND log_type = 'move' AND log_action = 'move' -- Don't count move reverts AND ( log_namespace = 0 -- Moved page was in article space OR log_namespace = 2 -- Or userspace OR log_namespace = 118 -- Or the Draft namespace ) LIMIT 10;
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...