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 * -- SELECT log_params AS title, page_is_redirect AS is_redirect FROM logging INNER JOIN page ON SUBSTRING(log_params, 11) = page_title -- Trim first 10 characters (hopefully "Wikipedia:") from log_params 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_namespace = 0 -- Moved page was in article space OR log_namespace = 2 -- Or userspace OR log_namespace = 118 -- Or the Draft namespace ) LIMIT 100;
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...