Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Lexeme pagelinks to redirected Items
by
Lucas Werkmeister
This query is marked as a draft
This query has been published
by
Lucas Werkmeister
.
Pagelinks from Lexeme pages to Items that are now redirects, and were not touched within the last 7 days (i. e. we can consider the redirect “stable”).
Toggle Highlighting
SQL
USE `wikidatawiki_p`; SELECT `pl_title`, COUNT(*) AS `count` FROM `pagelinks` JOIN `page` ON `pl_title` = `page_title` WHERE `pl_from_namespace` = 146 AND `pl_namespace` = 0 AND `page_namespace` = 0 AND `page_is_redirect` = 1 AND `page_touched` < DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 7 DAY), '%Y%m%d%H%i%s') GROUP BY `pl_title` ORDER BY `count` 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...