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
SNowick (WMF)
.
Toggle Highlighting
SQL
USE trwiki_p; SELECT SUBSTRING_INDEX(page_title, "/", 1) AS portal, SUBSTR(MIN(rev_timestamp), 1, 4) AS creation, COUNT(DISTINCT(rev_actor)) AS editors, COUNT(DISTINCT(rev_sha1)) AS revisions WHERE rev_timestamp > '2020011300000' FROM page JOIN revision_userindex ON rev_page = page_id AND page_namespace = 100 AND page_is_redirect = 0 AND rev_minor_edit = 0 WHERE SUBSTRING_INDEX(page_title, "/", 1) NOT IN ( SELECT page_title FROM categorylinks JOIN page ON cl_from = page_id AND ( cl_to = "Redirected_portals_with_existing_subpages" OR cl_to = "Portal_disambiguation_pages" OR cl_to = "Redirects from moves" ) ) GROUP BY portal ORDER BY editors desc LIMIT 1000;
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...