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
Pppery
.
Toggle Highlighting
SQL
-- Nonexistent select page_title from page cat where page_namespace=14 and page_title like "WikiProject_%_members" and not exists (select 1 from page where page_namespace=4 and page_title=replace(cat.page_title,"_members","")) and cat.page_title not rlike ".*task_?force.*"; select page_title from page cat where page_namespace=14 and page_title like "WikiProject_%_participants" and not exists (select 1 from page where page_namespace=4 and page_title=replace(cat.page_title,"_participants","")); -- Redirect select page_title from page cat where page_namespace=14 and page_title like "WikiProject_%_members" and exists (select 1 from page where page_namespace=4 and page_title=replace(cat.page_title,"_members","") and page_is_redirect=1) and not exists (select 1 from templatelinks where tl_from=cat.page_id and tl_title="Category_redirect"); select page_title from page cat where page_namespace=14 and page_title like "WikiProject_%_participants" and exists (select 1 from page where page_namespace=4 and page_title=replace(cat.page_title,"_participants","") and page_is_redirect=1) and not exists (select 1 from templatelinks where tl_from=cat.page_id and tl_title="Category_redirect"); -- Not a proper project select page_title from page cat where page_namespace=14 and page_title like "WikiProject_%_members" and exists (select 1 from page proj where proj.page_namespace=4 and proj.page_title=replace(cat.page_title,"_members","") and proj.page_is_redirect=0 and not exists ( select 1 from categorylinks where cl_from=proj.page_id and (cl_to in ("Active_WikiProjects","Semi-active_WikiProjects","Inactive_WikiProjects","Defunct_WikiProjects", "WikiProjects_participating_in_Wikipedia_1.0_assessments","WikiProjects_relevant_for_countering_systemic_bias") or cl_to like "Inactive_%WikiProjects") ) ); -- Defunct select concat("Category:",page_title," members") from categorylinks join page on page_id=cl_from where cl_to="Defunct_WikiProjects" and exists (select 1 from page cat where page_namespace=14 and cat.page_title=concat(page.page_title, "_members")); select concat("Category:",page_title," participants") from categorylinks join page on page_id=cl_from where cl_to="Defunct_WikiProjects" and exists (select 1 from page cat where page_namespace=14 and cat.page_title=concat(page.page_title, "_participants")); -- Inactive select page_title from categorylinks join page on page_id=cl_from where cl_to="Inactive_WikiProjects" and exists (select 1 from page cat where page_namespace=14 and cat.page_title=concat(page.page_title, "_members")); select page_title from categorylinks join page on page_id=cl_from where cl_to="Inactive_WikiProjects" and exists (select 1 from page cat where page_namespace=14 and cat.page_title=concat(page.page_title, "_participants")); -- Active select page_title from categorylinks join page on page_id=cl_from where cl_to="Active_WikiProjects" and exists (select 1 from page cat where page_namespace=14 and cat.page_title=concat(page.page_title, "_members")); select page_title from categorylinks join page on page_id=cl_from where cl_to="Active_WikiProjects" and exists (select 1 from page cat where page_namespace=14 and cat.page_title=concat(page.page_title, "_participants"));
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...