Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Important articles without portal links (2010s test)
by
Certes
This query is marked as a draft
This query has been published
by
Certes
.
Toggle Highlighting
SQL
SELECT Pa.page_title AS Portal, SUBSTRING_INDEX(cl_to, "-", 1) AS Importance, Pa.page_title AS Article FROM page Pp WHERE Pp.page_namespace=100 AND Pp.page_title="2010s" JOIN categorylinks ON cl_type="page" AND cl_to IN (CONCAT("Top-importance_",Pp.page_title,"_articles"), CONCAT("High-importance_",Pp.page_title,"_articles")) JOIN page Pt ON Pt.page_id=cl_from AND Pt.page_namespace=1 /* Talk page */ JOIN page Pa ON Pa.page_namespace=0 AND Pa.page_title=Pt.page_title /* Article */ AND NOT EXISTS (SELECT 1 FROM pagelinks WHERE pl_from=Pa.page_id AND pl_title="2010s" AND pl_namespace=100) ORDER BY Portal, Importance DESC, Article
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...