Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
nlwiki Articles without content category
by
Bdijkstra
This query is marked as a draft
This query has been published
by
Estopedist1
.
1. hc = a list of maintenance categories, meaning the titles of category pages with the __HIDDENCAT__ or __EXPECTUNUSEDCATEGORY__ property note: could filter out empty categories using the `category` table 2. nhcl = take `categorylinks`, filter out hc and collapse to a single row per page 3. final result = get the titles of article pages not present in nhcl
Toggle Highlighting
SQL
use commonswiki_p; SELECT page_title FROM page WHERE page_namespace=6 AND page_is_redirect=0 AND NOT EXISTS (SELECT * FROM ( # niet-beheer categorylinks SELECT cl_from, cl_to FROM categorylinks WHERE NOT EXISTS (SELECT * FROM ( # beheercategorieƫn SELECT DISTINCT page_title FROM page, page_props WHERE page_namespace=14 AND page_id=pp_page AND pp_propname='expectunusedcategory' ) AS hc WHERE cl_to=hc.page_title) GROUP BY cl_from ORDER BY cl_from ) AS nhcl WHERE nhcl.cl_from=page_id) LIMIT 3;
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...