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
MMiller (WMF)
.
Toggle Highlighting
SQL
USE enwiki_p; SELECT tp.page_is_redirect, case when cl1.cl_to is not null then 1 else 0 end as pending, case when cl2.cl_to is not null then 1 else 0 end as declined, count(*) FROM page tp LEFT JOIN categorylinks cl1 ON tp.page_id = cl1.cl_from AND cl1.cl_to = 'Pending_AfC_submissions' LEFT JOIN categorylinks cl2 ON tp.page_id = cl2.cl_from AND cl2.cl_to = 'Declined_AfC_submissions' WHERE tp.page_namespace = 118 group by 1,2,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...