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
Druvari
.
Toggle Highlighting
SQL
USE sqwiki_p; -- Use the Albanian Wikipedia SELECT REPLACE(p.page_title, '_', ' ') AS Articles, p.page_len AS Length -- Replace underscores in titles with spaces FROM page p LEFT JOIN categorylinks cl ON p.page_id = cl.cl_from AND cl.cl_to IN ('Faqe_për_grisje', 'Faqe_kthjelluese') -- Specify both categories to exclude WHERE p.page_namespace = 0 -- Namespace 0 is for articles AND p.page_len < 1024 -- Find pages with length less than 1KB AND p.page_is_redirect = 0 -- Exclude redirects AND cl.cl_to IS NULL -- Exclude pages that are in 'Faqe për grisje' or 'Faqe kthjelluese' GROUP BY p.page_title, p.page_len -- Group by original fields ORDER BY p.page_len; -- Order by page length
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...