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
Bdijkstra
.
(anonymous users and redirects excluded) Note that the table `user` doesn't seem to contain entries for users with zero visible edits (and neither does `actor`).
Toggle Highlighting
SQL
USE nlwiki_p; #1.1M SELECT COUNT(user_id) FROM `user`; /*305k SELECT COUNT(page_id) FROM `page` WHERE page_is_redirect=0 AND page_namespace IN (2, 3) AND page_title NOT REGEXP '([1-9][0-9\.]+[0-9]|[1-9A-F][0-9A-F:]+[0-9A-F])(/[0-9]+)?';*/ SELECT COUNT(DISTINCT REGEXP_REPLACE(page_title, '/.*$', '')) FROM `page` WHERE page_is_redirect=0 AND page_namespace IN (2, 3) AND page_title NOT REGEXP '([1-9][0-9\.]+[0-9]|[1-9A-F][0-9A-F:]+[0-9A-F])(/[0-9]+)?'; /*SELECT page_namespace, page_title, page_is_redirect FROM `page` WHERE page_is_redirect=0 AND page_namespace IN (2, 3) AND page_title NOT REGEXP '([1-9][0-9\.]+[0-9]|[1-9A-F][0-9A-F:]+[0-9A-F])(/[0-9]+)?' AND NOT EXISTS (SELECT * FROM `user` WHERE user_name=REPLACE(page_title,'_',' ') OR user_name=REGEXP_REPLACE(REPLACE(page_title,'_',' '), '_*!!!/.*$', '') )*/
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...