Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
English Wikipedia portals by age and number of edits, editors
by
Nemo bis
This query is marked as a draft
This query has been published
by
Schierbecker
.
Toggle Highlighting
SQL
USE enwiki_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 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" ) ) GROUP BY portal ORDER BY editors ASC 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...