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
Nettrom
.
Count of the number of non-redirect articles in the New Page Patrol queue, with an additional count of the number of those that were created more than 90 days ago (meaning that they can now be indexed by search engines).
Toggle Highlighting
SQL
SELECT UTC_TIMESTAMP() AS npp_timestamp, COUNT(*) AS npp_count, SUM(IF(TIMESTAMPDIFF(DAY, creation_ts, UTC_TIMESTAMP()) >= 90, 1, 0)) AS npp_num_indexable FROM ( SELECT rev_page, MIN(rev_timestamp) AS creation_ts FROM revision WHERE rev_page IN ( SELECT ptrp_page_id FROM pagetriage_page JOIN page ON ptrp_page_id = page_id WHERE ptrp_reviewed = 0 AND page_is_redirect = 0 AND page_namespace = 0 ) GROUP BY rev_page )
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...