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
Zache
.
https://phabricator.wikimedia.org/T323495
Toggle Highlighting
SQL
SELECT reviewed_pages_ns0.year, total_pages_ns0.frs_stat_val_avg as total_pages_ns0, reviewed_pages_ns0.frs_stat_val_avg as reviewed_pages_ns0, synced_pages_ns0.frs_stat_val_avg as synced_pages_ns0, reviewed_pages_ns0.frs_stat_val_avg - synced_pages_ns0.frs_stat_val_avg as pending_changes FROM (SELECT floor(frs_timestamp/10000000000) as year, floor(avg(frs_stat_val)) as frs_stat_val_avg FROM flaggedrevs_statistics WHERE frs_stat_key="reviewedPages-NS:0" group by year ) as reviewed_pages_ns0, (SELECT floor(frs_timestamp/10000000000) as year, floor(avg(frs_stat_val)) as frs_stat_val_avg FROM flaggedrevs_statistics WHERE frs_stat_key="syncedPages-NS:0" group by year ) as synced_pages_ns0, (SELECT floor(frs_timestamp/10000000000) as year, floor(avg(frs_stat_val)) as frs_stat_val_avg FROM flaggedrevs_statistics WHERE frs_stat_key="totalPages-NS:0" group by year ) as total_pages_ns0 WHERE reviewed_pages_ns0.year = synced_pages_ns0.year AND reviewed_pages_ns0.year = total_pages_ns0.year ORDER BY year
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...