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
FoBe
.
Toggle Highlighting
SQL
SELECT COUNT(rev_id) as "# pending revisions" FROM revision INNER JOIN page ON rev_page = page_id INNER JOIN flaggedpage_pending ON page_id = fpp_page_id WHERE rev_id > fpp_rev_id; SELECT COUNT(DISTINCT rev_id) as "# pages with pending revisions by users with autoreview right" FROM revision INNER JOIN flaggedpage_pending ON fpp_rev_id = rev_id INNER JOIN actor ON actor_id = rev_actor LEFT OUTER JOIN user_groups ON ug_user = actor_user WHERE ug_group IN ('editor','trusted','sysop','bot'); SELECT COUNT(*) as "# pages with pending revisions" FROM flaggedpage_pending;
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...