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
EpochFail
.
Toggle Highlighting
SQL
USE enwiki_p; SELECT tp.page_title, class, article.page_len FROM ( SELECT cl_from, "Stub" AS class FROM categorylinks qual WHERE qual.cl_to LIKE "Stub-Class_%" LIMIT 10 ) AS foo INNER JOIN page tp ON cl_from = page_id INNER JOIN page article ON article.page_namespace = 0 AND article.page_title = tp.page_title GROUP BY tp.page_title UNION ALL SELECT tp.page_title FROM ( SELECT cl_from, "Start" AS class FROM categorylinks qual WHERE qual.cl_to LIKE "Start-Class_%" LIMIT 10 ) AS foo INNER JOIN page tp ON cl_from = page_id INNER JOIN page article ON article.page_namespace = 0 AND article.page_title = tp.page_title GROUP BY tp.page_title UNION ALL SELECT tp.page_title FROM ( SELECT cl_from, "C" AS class FROM categorylinks qual WHERE qual.cl_to LIKE "C-Class_%" LIMIT 10 ) AS foo INNER JOIN page tp ON cl_from = page_id INNER JOIN page article ON article.page_namespace = 0 AND article.page_title = tp.page_title GROUP BY tp.page_title UNION ALL SELECT tp.page_title FROM ( SELECT cl_from, "B" AS class FROM categorylinks qual WHERE qual.cl_to LIKE "B-Class_%" LIMIT 10 ) AS foo INNER JOIN page tp ON cl_from = page_id INNER JOIN page article ON article.page_namespace = 0 AND article.page_title = tp.page_title GROUP BY tp.page_title UNION ALL SELECT tp.page_title FROM ( SELECT cl_from, "GA" AS class FROM categorylinks qual WHERE qual.cl_to LIKE "GA-Class_%" LIMIT 10 ) AS foo INNER JOIN page tp ON cl_from = page_id INNER JOIN page article ON article.page_namespace = 0 AND article.page_title = tp.page_title GROUP BY tp.page_title UNION ALL SELECT tp.page_title FROM ( SELECT cl_from, "FA" AS class FROM categorylinks qual WHERE qual.cl_to LIKE "FA-Class_%" LIMIT 10 ) AS foo INNER JOIN page tp ON cl_from = page_id INNER JOIN page article ON article.page_namespace = 0 AND article.page_title = tp.page_title GROUP BY tp.page_title;
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...