Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Number of ipblocks created/updated since 2023/01/01
by
Phuedx (WMF)
This query is marked as a draft
This query has been published
by
SCherukuwada (WMF)
.
Toggle Highlighting
SQL
SELECT b.actor_id, CASE r.num_revisions WHEN NULL THEN 0 ELSE r.num_revisions END, FROM ( SELECT ipb_by_actor AS actor_id, COUNT(*) AS num_blocks FROM ipblocks b WHERE b.ipb_timestamp > '2022' AND b.ipb_timestamp < '2023' GROUP BY ipb_by_actor ORDER BY num_blocks DESC LIMIT 100 ) b LEFT JOIN ( SELECT rev_actor AS rev_actor, COUNT(*) AS num_revisions FROM revision WHERE rev_timestamp > '2021' AND rev_timestamp < '2023' GROUP BY rev_actor ) r ON b.actor_id = r.rev_actor ;
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...