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
Mr. Ibrahem
.
Toggle Highlighting
SQL
SELECT u.user_name as user_name, ( SELECT MIN(rev_timestamp) FROM revision WHERE rev_actor = a.actor_id ) AS first_edit_date, ( SELECT COUNT(*) FROM revision INNER JOIN actor ON rev_actor = actor.actor_id INNER JOIN page on rev_page = page.page_id WHERE page_namespace = 0 AND page_is_redirect = 0 AND rev_parent_id = 0 AND rev_actor = a.actor_id ) AS pages_created, ( select COUNT(*) FROM revision INNER JOIN actor ON rev_actor = actor.actor_id INNER JOIN page p on rev_page = page_id WHERE page_namespace = 10 and page_is_redirect = 0 and rev_parent_id = 0 AND rev_actor = a.actor_id ) AS template_created, ( select COUNT(*) FROM revision INNER JOIN actor ON rev_actor = actor.actor_id INNER JOIN page p on rev_page = page_id WHERE page_namespace = 12 and page_is_redirect = 0 and rev_parent_id = 0 AND rev_actor = a.actor_id ) AS help_created, ( select COUNT(*) FROM revision INNER JOIN actor ON rev_actor = actor.actor_id INNER JOIN page p on rev_page = page_id WHERE page_namespace = 14 and page_is_redirect = 0 and rev_parent_id = 0 AND rev_actor = a.actor_id ) AS category_created, ( select COUNT(*) FROM revision INNER JOIN actor ON rev_actor = actor.actor_id INNER JOIN page p on rev_page = page_id WHERE page_namespace = 100 and page_is_redirect = 0 and rev_parent_id = 0 and page_title not like "%/%" AND rev_actor = a.actor_id ) AS portals_created, ( select COUNT(*) FROM revision INNER JOIN actor ON rev_actor = actor.actor_id INNER JOIN page p on rev_page = page_id WHERE page_namespace=0 and page_is_redirect=1 and rev_parent_id=0 AND rev_actor = a.actor_id ) AS redirect_created FROM user u JOIN actor a ON a.actor_user = u.user_id AND ucase(actor_name) NOT LIKE ucase("%BOT") AND actor_name NOT LIKE "%بوت%" AND actor_name NOT IN (SELECT user_name FROM user_groups INNER JOIN user ON user_id = ug_user WHERE ug_group = "bot") AND actor_id NOT IN ("2579643") and actor_user not in (137877) ORDER BY pages_created DESC LIMIT 5;
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...