Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Random samples of 100 musician articles in all quality classes
by
EpochFail
This query is marked as a draft
This query has been published
by
Mkostiv
.
Toggle Highlighting
SQL
USE enwiki_p; SELECT tp.page_title, class, article.page_len, article.page_latest FROM ( SELECT cl_from, "Stub" AS class FROM categorylinks qual WHERE qual.cl_to = "Stub-Class_biography_(musicians)_articles" ORDER BY RAND() LIMIT 100 ) 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, class, article.page_len, article.page_latest FROM ( SELECT cl_from, "Start" AS class FROM categorylinks qual WHERE qual.cl_to = "Start-Class_biography_(musicians)_articles" ORDER BY RAND() LIMIT 100 ) 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, class, article.page_len, article.page_latest FROM ( SELECT cl_from, "C" AS class FROM categorylinks qual WHERE qual.cl_to = "C-Class_biography_(musicians)_articles" ORDER BY RAND() LIMIT 100 ) 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, class, article.page_len, article.page_latest FROM ( SELECT cl_from, "B" AS class FROM categorylinks qual WHERE qual.cl_to = "B-Class_biography_(musicians)_articles" ORDER BY RAND() LIMIT 100 ) 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, class, article.page_len, article.page_latest FROM ( SELECT cl_from, "GA" AS class FROM categorylinks qual WHERE qual.cl_to = "GA-Class_biography_(musicians)_articles" ORDER BY RAND() LIMIT 100 ) 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, class, article.page_len, article.page_latest FROM ( SELECT cl_from, "FA" AS class FROM categorylinks qual WHERE qual.cl_to = "FA-Class_biography_(musicians)_articles" ORDER BY RAND() LIMIT 100 ) 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...