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
PhantomTech
.
Toggle Highlighting
SQL
SELECT user_id FROM (SELECT user_id, SUM(userspace) AS userspace_total, SUM(usertalk) AS usertalk_total, SUM(other) AS other_total, COUNT(rev_id) AS total FROM (SELECT user.user_id, revision_userindex.rev_id, CASE WHEN page.page_namespace = 2 THEN 1 ELSE 0 END AS userspace, CASE WHEN page.page_namespace = 3 THEN 1 ELSE 0 END AS usertalk, CASE WHEN page.page_namespace NOT IN (2,3) THEN 1 ELSE 0 END AS other FROM user JOIN actor On user.user_id = actor.actor_user JOIN revision_userindex ON revision_userindex.rev_actor = actor.actor_id JOIN page ON revision_userindex.rev_page = page.page_id) AS user_revs GROUP BY user_id HAVING total < 500 AND (userspace_total + usertalk_total) = total) AS user_stats LIMIT 1
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...